Forum Discussion
Can we hide the Sync on all the current sites and future sites using UI or using PowerShell
john john You can also try using Set-PnPTenant in PnP PowerShell for disabling sync option for all lists and all sites in the SharePoint tenant:
Connect-PnPOnline -Url "https://contoso-admin.sharepoint.com" -Interactive
Set-PnPTenant -DisableListSync $true
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- john johnAug 25, 2023Steel Contributor
ganeshsanapdid you try this command
Set-PnPTenant -DisableListSync $true
as i will get this error
Set-PnPTenant: Field or property "DisableListSync" does not exist.
- Aug 25, 2023
john john I highly recommend from turning sync off in that manner. You are asking for trouble. You’ll end up with duplicated data on everyone’s machines with local copies being saved to from recent lists etc.
this was one of the biggest problems with sync verses using the newer link to OneDrive feature was removing sync left files behind in any file that had an offline copy.