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
It "Database <_.Name> - owner '<_.Owner>' should not be in this list ( <_.ConfigValues.invaliddbownername> ) ) on <_.SqlInstance>"-Skip:$skip-ForEach $psitem.Databases.Where{ if ($Database) { $_.Name-in$Database } else { $psitem.ConfigValues.invaliddbownerexclude-notcontains$PsItem.Name } } {
91
+
$psitem.Owner| Should -Not-BeIn $psitem.ConfigValues.invaliddbownername-Because "The database owner was one specified as incorrect"
Context "Testing Asymmetric Key Size is 2048 or higher on <_.Name>" {
99
+
It "Database <_.Name> asymmetric key size should be at least 2048 on <_.SqlInstance>"-Skip:$skip-ForEach $psitem.Databases.Where{ if ($Database) { $_.Name-in$Database } else { $psitem.ConfigValues.asymmetrickeysizeexclude-notcontains$PsItem.Name } } {
100
+
$psitem.AsymmetricKeySize| Should -Be 0-Because "Asymmetric keys should have a key length greater than or equal to 2048"
101
+
#$psitem.AsymmetricKeySize | Should -BeGreaterOrEqual 2048 -Because "Asymmetric keys should have a key length greater than or equal to 2048"
Set-PSFConfig-Module dbachecks -Name policy.asymmetrickeysize.excludedb -Value @('master','msdb','tempdb') -Initialize -Description "Databases to exclude from asymmetric key size checks"
233
+
234
+
235
+
231
236
# skips - these are for whole checks that should not run by default or internal commands that can't be skipped using ExcludeTag
232
237
Set-PSFConfig-Module dbachecks -Name skip.dbcc.datapuritycheck -Validation bool -Value $false-Initialize -Description "Skip data purity check in last good dbcc command"
233
238
Set-PSFConfig-Module dbachecks -Name skip.backup.testing -Validation bool -Value $true-Initialize -Description "Don't run Test-DbaLastBackup by default (it's not read-only)"
Set-PSFConfig-Module dbachecks -Name skip.database.filegrowthdisabled -Validation bool -Value $true-Initialize -Description "Skip validation of datafiles which have growth value equal to zero."
0 commit comments