Closed cnEUL closed 1 year ago
Adding a new function inc.. Pestertest in this way:
function Test-MssqlAdministrator { $conn = Get-Conn -udl $udl $sql = "SELECT IS_SRVROLEMEMBER('sysadmin')" $rs = $conn.Execute($sql) $result = ($rs.Fields.Item(0).Value -ne 1) $rs.close() $conn.close() }
Closed with https://github.com/Eulanda/EulandaConnect/commit/92d36e133684c98c6b2d8e21a34272d31dd71d0b
Adding a new function inc.. Pestertest in this way: