Skip to content

Commit c5f7ecc

Browse files
include in hotfix
1 parent c6a079f commit c5f7ecc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardunmanagedSync.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)