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-CIPPStandardSPDirectSharing.ps1
+45-1Lines changed: 45 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,5 +32,49 @@ function Invoke-CIPPStandardSPDirectSharing {
32
32
33
33
param($Tenant,$Settings)
34
34
35
-
Write-LogMessage-API 'Standards'-Tenant $Tenant-Message 'This standard has been deprecated in favor of the Set Default Sharing Link Settings standard. Please update your standards to use new standard.'-Sev Alert
35
+
Write-LogMessage-API 'Standards'-Tenant $Tenant-Message 'This standard has been deprecated in favor of the "Set Default Sharing Link Settings" standard. Please update your standards to use new standard. However this will continue to function.'-Sev Alert
Write-LogMessage-API 'Standards'-Tenant $Tenant-Message "Failed to set the SharePoint Default Direct Sharing to Direct. Error: $ErrorMessage"-Sev Error
56
+
}
57
+
}
58
+
}
59
+
60
+
if ($Settings.alert-eq$true) {
61
+
if ($StateIsCorrect-eq$true) {
62
+
Write-LogMessage-API 'Standards'-Tenant $Tenant-Message 'SharePoint Direct Sharing is enabled'-Sev Info
63
+
} else {
64
+
$Message='SharePoint Default Direct Sharing is not enabled.'
0 commit comments