You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context "Testing if the CHECK_POLICY is enabled on all logins on $psitem" {
224
+
It "All logins should have the CHECK_POLICY option set to ON on $psitem"-Skip:$skip {
225
+
($psitem.logins|Where-Object { $_.LoginType-eq'SqlLogin'-and$_.PasswordPolicyEnforced-eq$false-and$_.IsDisabled-eq$false }).Count | Should -Be 0-Because "We expected the CHECK_POLICY for the all logins to be enabled"
It "There should be less than <_.MemoryDump.MaxDumps> since <_.MemoryDump.DumpDateCheckFrom> on <_.Name>"-Skip:$skip {
220
-
$Psitem.MemoryDump.Result| Should -BeTrue -Because "We expected less than $($Psitem.MemoryDump.MaxDumps) dumps since $(PsItem.MemoryDump.DumpDateCheckFrom)but found $($Psitem.MemoryDump.DumpCount) . Memory dumps often suggest issues with the SQL Server instance"
257
+
$Psitem.MemoryDump.Result| Should -BeTrue -Because "We expected less than $($Psitem.MemoryDump.MaxDumps) dumps since $($PsItem.MemoryDump.DumpDateCheckFrom)but found $($Psitem.MemoryDump.DumpCount) . Memory dumps often suggest issues with the SQL Server instance"
0 commit comments