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

@@ -25,9 +25,6 @@ function Test-SharePointGuestsItemSharing {
Status = if ($isGuestResharingPrevented) { "Pass" } else { "Fail" }
Details = "PreventExternalUsersFromResharing: $isGuestResharingPrevented"
FailureReason = if (-not $isGuestResharingPrevented) { "Guest users can reshare items they don't own." } else { "N/A" }
RecDescription = "Ensure that SharePoint guest users cannot share items they don't own"
CISControl = "3.3"
CISDescription = "Configure Data Access Control Lists"
}
$auditResult = Initialize-CISAuditResult @params
}