Commands › SharePoint Online

Set-SPOTenantSyncClientRestriction

SharePoint Online Microsoft.Online.SharePoint.PowerShell Set-*

Controls tenant-wide options and restrictions specific to syncing files.

Quick start script

# Set-SPOTenantSyncClientRestriction — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOTenantSyncClientRestriction
$before | Format-List

# 3. Make the change
Set-SPOTenantSyncClientRestriction -DisableReportProblemDialog <Boolean>

# 4. Verify and diff
$after = Get-SPOTenantSyncClientRestriction
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax — 4 parameter sets

Blocking

Set-SPOTenantSyncClientRestriction [-Enable] [-DomainGuids <String>] [-BlockMacSync] [<CommonParameters>]

FileExclusion

Set-SPOTenantSyncClientRestriction [-ExcludedFileExtensions <String>] [<CommonParameters>]

GrooveBlockOptions

Set-SPOTenantSyncClientRestriction [-GrooveBlockOption <String>] [<CommonParameters>]

ReportProblemDialogFeature

Set-SPOTenantSyncClientRestriction -DisableReportProblemDialog <Boolean> [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-BlockMacSync SwitchParameter Block Mac sync clients-- the Beta version and the new sync client (OneDrive.exe). The values for this parameter are True and False. The default value is False.
-DisableReportProblemDialog Boolean yes
-DomainGuids String Sets the [domain GUID](/powershell/module/activedirectory/get-addomain) of the computer domain membership to add to the safe recipient list. Requires a minimum of one domain GUID. The maximum number of domain GUIDs...
-Enable SwitchParameter Enables the feature to block sync originating from domains that are not present in the safe recipients list.
-ExcludedFileExtensions String Blocks certain file types from syncing with the new sync client (OneDrive.exe).
-GrooveBlockOption String Sets the block option for Groove clients.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.