add: refactor of object initialization

This commit is contained in:
DrIOS
2024-05-28 18:50:18 -05:00
parent cafcaf2671
commit b064f9f271
54 changed files with 17 additions and 180 deletions

View File

@@ -41,9 +41,6 @@ function Test-GlobalAdminsCount {
Status = if ($globalAdminCount -ge 2 -and $globalAdminCount -le 4) { "Pass" } else { "Fail" }
Details = $details
FailureReason = $failureReasons
RecDescription = "Ensure that between two and four global admins are designated"
CISControl = "5.1"
CISDescription = "Establish and Maintain an Inventory of Accounts"
}
$auditResult = Initialize-CISAuditResult @params
}