File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ function Invoke-CIPPStandardunmanagedSync {
1010
1111 if ($CurrentInfo.isUnmanagedSyncAppForTenantRestricted -eq $false ) {
1212 try {
13- $body = ' {"isUnmanagedSyncAppForTenantRestricted": true}'
14- $null = New-GraphPostRequest - tenantid $tenant - Uri ' https://graph.microsoft.com/beta/admin/sharepoint/settings' - AsApp $true - Type patch - Body $body - ContentType ' application/json'
15- Write-LogMessage - API ' Standards' - tenant $tenant - message ' Disabled Sync for unmanaged devices ' - sev Info
13+ # $body = '{"isUnmanagedSyncAppForTenantRestricted": true}'
14+ # $null = New-GraphPostRequest -tenantid $tenant -Uri 'https://graph.microsoft.com/beta/admin/sharepoint/settings' -AsApp $true -Type patch -Body $body -ContentType 'application/json'
15+ Write-LogMessage - API ' Standards' - tenant $tenant - message ' The unmanaged Sync standard has been temporarily disabled. ' - sev Info
1616 } catch {
1717 Write-LogMessage - API ' Standards' - tenant $tenant - message " Failed to disable Sync for unmanaged devices: $ ( $_.exception.message ) " - sev Error
1818 }
You can’t perform that action at this time.
0 commit comments