Export (0) Print
Expand All

Configure the co-authoring versioning period in SharePoint 2013

 

Applies to: SharePoint Server 2013 Enterprise, SharePoint Foundation 2013

Topic Last Modified: 2013-12-18

Summary: Learn how to specify how often SharePoint 2013 stores a version of a document that is being edited.

Audience: IT Professionals

The CoauthoringVersionPeriod property specifies, in minutes, how often SharePoint stores a version of a document that is being edited. This article describes how to use Windows PowerShell to configure the CoauthoringVersionPeriod property. For more information about document library versioning, see Configure versioning for co-authoring in SharePoint 2013.

NoteNote:
Because SharePoint 2013 runs as websites in IIS, administrators and users depend on the accessibility features that browsers provide. SharePoint 2013 supports the accessibility features of supported browsers. For more information, see the following resources:

When versioning is turned on, SharePoint 2013 takes periodic snapshots of documents, saving them for later reference. This information can provide an edit trail that may be useful for seeing who changed a document, rolling back to an earlier version, or for compliance reasons.

You can configure the CoauthoringVersionPeriod property by using the Windows PowerShell. If the value is set to 0, SharePoint 2013 captures every change made by a new user in a different version of the document. If the value is set to a very large number, SharePoint 2013 creates one version for the whole editing session. This latter behavior matches the behavior of files that are not co-authored and files that were created in earlier versions of SharePoint Server or SharePoint Foundation.

To configure the co-authoring versioning period by using Windows PowerShell (save as script and run script)
  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 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 Permissions and Add-SPShellAdmin.
  2. Paste the following code into a text editor, such as Notepad:

    $siteurl ="<ServerName>" 
    $mysite=new-object Microsoft.SharePoint.SPSite($siteurl)
    $mysite.WebApplication.WebService.CoauthoringVersionPeriod = <Time>
    $mysite.WebApplication.WebService.Update()
    
  3. Specify the following parameters:

    Parameters to configure the co-authoring versioning period

    Parameter Value

    ServerName

    Server name

    Time

    Number in minutes

  4. Save the file and add the .ps1 extension, such as SuggestedNameOfFile.ps1.

    NoteNote:
    You can use a different file name, but you must save the file as an ANSI-encoded text file whose extension is .ps1.
  5. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

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

    • For Windows Server 2012:

      • Swipe in from the edge of the screen to show the charms and then choose Search to see all the applications that are installed on the computer.

      • Choose (right-click) SharePoint 2013 Management Shell to display the app bar.

      • In the app bar, choose Run as administrator.

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

  6. Change to the directory to which you saved the file.

  7. At the Windows PowerShell command prompt, type the following command:

    ./SuggestedFileName.ps1
    

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