Forum Discussion
john john
Aug 24, 2023Steel Contributor
Can we hide the Sync on all the current sites and future sites using UI or using PowerShell
I know that we can hide the Sync button for a document library or for all the document libraries inside a site as mentioned in this link https://www.sharepointdiary.com/2017/08/disable-sync-button-i...
ganeshsanap
Aug 25, 2023MVP
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 john
Aug 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.