add: refactor of object initialization
This commit is contained in:
@@ -49,9 +49,6 @@ function Test-NotifyMalwareInternal {
|
||||
Status = if ($result) { "Pass" } else { "Fail" }
|
||||
Details = $details
|
||||
FailureReason = $failureReasons
|
||||
RecDescription = "Ensure notifications for internal users sending malware is Enabled"
|
||||
CISControl = "17.5"
|
||||
CISDescription = "Assign Key Roles and Responsibilities"
|
||||
}
|
||||
$auditResult = Initialize-CISAuditResult @params
|
||||
}
|
||||
@@ -60,4 +57,4 @@ function Test-NotifyMalwareInternal {
|
||||
# Return the audit result
|
||||
return $auditResult
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user