Export (0) Print
Expand All

Configure synchronization on all document libraries in SharePoint Server 2013

SharePoint 2013
 

Applies to: SharePoint Server 2013

Topic Last Modified: 2014-02-20

Summary: Learn how to add or remove synchronization from all document libraries in SharePoint Server 2013.

In SharePoint Server 2013, if a client workstation has Office 2013 installed, users can synchronize files that are stored in document libraries with their client workstations, and vice versa. The OneDrive for Business Windows Sync client performs the synchronization of files between document libraries and the client workstation. When the OneDrive for Business Windows Sync client synchronizes files to a client workstation, users take their files offline from SharePoint Server, work on them while offline, and then synchronize them with their document library when they reconnect to SharePoint Server 2013. Depending on your IT policy, users may not be allowed to take files offline from SharePoint Server and you must prohibit file synchronization. The following procedures explain how a farm administrator can add or remove synchronization on all document libraries on all sites in SharePoint Server 2013.

ImportantImportant:
The following PowerShell cmdlets either add or remove synchronization from all document libraries in SharePoint Server 2013. Site collection administrators can manually change the Offline Client Availability setting under Site Settings after these PowerShell cmdlets are run. Select and educate site collection administrators appropriately because a site collection administrator who changes the Offline Client Availability setting may violate your corporate IT policy.

Use the following procedure to remove synchronization on all document libraries on all sites in SharePoint Server 2013. Running the following PowerShell cmdlet sets the Offline Client Availability setting to No on all sites in SharePoint Server 2013, and removes the Sync button from the ribbon.

To remove synchronization from all document libraries
  1. Verify that you have the following memberships:

    • securityadmin fixed server role on the SQL Server instance.

    • db_owner fixed database role on all databases that are to be updated.

    • Administrators group on the server on which you are running the Windows PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 cmdlets.

    NoteNote:
    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.
  2. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

      • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Management Shell.

        If SharePoint 2013 Management Shell is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, run the following command:

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

Use the following procedure to add synchronization to all document libraries on all sites in SharePoint Server 2013. By default, synchronization is enabled on all document libraries. Running the following PowerShell cmdlet sets the Offline Client Availability to Yes on all sites in SharePoint Server 2013, and adds the Sync button on the ribbon.

To add synchronization to all document libraries
  1. Verify that you have the following memberships:

    • securityadmin fixed server role on the SQL Server instance.

    • db_owner fixed database role on all databases that are to be updated.

    • Administrators group on the server on which you are running the Windows PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 cmdlets.

    NoteNote:
    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.
  2. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

      • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Management Shell.

        If SharePoint 2013 Management Shell is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, run the following command:

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft