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
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardsharingCapability.ps1
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -70,13 +70,18 @@ function Invoke-CIPPStandardsharingCapability {
70
70
}
71
71
72
72
if ($Settings.alert-eq$true) {
73
-
74
73
if ($CurrentInfo.sharingCapability-eq$level) {
75
74
Write-LogMessage-API 'Standards'-tenant $Tenant-message "Sharing level is set to $level"-sev Info
76
-
$FieldValue=$true
77
75
} else {
78
76
Write-StandardsAlert-message "Sharing level is not set to $level"-object $CurrentInfo-tenant $Tenant-standardName 'sharingCapability'-standardId $Settings.standardId
79
77
Write-LogMessage-API 'Standards'-tenant $Tenant-message "Sharing level is not set to $level"-sev Info
0 commit comments