Monday, August 26, 2013

Configure document synchronization for all document libraries in SharePoint 2013

In SharePoint 2013, users can synchronize all the files saved in document library to the local machine and local machines to SharePoint document libraries. Windows sync in SkyDrive will performs the synchronization between SharePoint document libraries and local machine. Users can take the documents or files and work on them and will sync with SharePoint after reconnecting to SharePoint. We can allow restrict the file synchronization.

We can manage the Synchronization settings for SharePoint site collection by navigating to Site settings and click on the Search and Offline availability in Search section. By Selecting Yes/No option for Offline Client Availability we can specify the site to available for offline clients.




We can add and remove synchronizations using following PowerShell scripts,
To add Synchronization we need to make Offline Client Availability setting to Yes for all the sites in SharePoint using the command below,

Get-SPSite -limit all | get-SPWeb -limit all | Foreach { $_.Title = $_.Title; $_.ExcludeFromOfflineClient=1; $_.Update() }

To remove Synchronization we need to make Offline Client Availability setting to No for all the sites in SharePoint using the command below,

Get-SPSite -limit all | get-SPWeb -limit all | Foreach { $_.Title = $_.Title; $_.ExcludeFromOfflineClient=0; $_.Update() }


Share this