在 SharePoint Server 中設定共同撰寫作者數目上限Configure the maximum number of co-authoring authors in SharePoint Server

摘要:了解如何限制可共同撰寫 Word 文件或 PowerPoint 簡報,同時的使用者數目。Summary: Learn how to limit the number of users who can co-author a Word document or PowerPoint presentation at the same time.

CoauthoringMaxAuthors 屬性可讓您指定可共同撰寫 Word 文件或 PowerPoint 簡報,同時在 SharePoint Server 2013 中的使用者數目上限。本文說明如何使用 Microsoft PowerShell 設定 CoauthoringMaxAuthors 屬性。The CoauthoringMaxAuthors property lets you specify the maximum number of users who can co-author a Word document or PowerPoint presentation at the same time in SharePoint Server 2013. This article describes how to configure the CoauthoringMaxAuthors property by using Microsoft PowerShell.

設定 SharePoint 2013 的共同撰寫作者數目上限Configure the maximum number of co-authoring authors for SharePoint 2013

您可以限制可同時共同撰寫文件,藉由設定 CoauthoringMaxAuthors 屬性的使用者數目。此屬性僅適用於 Word 2010、 Word 2013、 Word Web App、 PowerPoint 2010、 PowerPoint 2013 及 PowerPoint Web App 的文件。可共同撰寫作者 OneNote 筆記本的使用者數沒有上限。You can limit the number of users who can co-author a document at the same time by setting the CoauthoringMaxAuthors property. This property only applies to Word 2010, Word 2013, Word Web App, PowerPoint 2010, PowerPoint 2013 and PowerPoint Web App documents. There is no upper limit to the number of users who can co-author OneNote notebooks.

使用 Windows PowerShell (儲存為指令碼並執行指令碼) 設定的 Word 文件和 PowerPoint 簡報的共同撰寫使用者數上限To configure the maximum number of co-authoring users for Word documents and PowerPoint presentations by using Windows PowerShell (save as script and run script)

  1. 確認您具備下列成員資格:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running PowerShell cmdlets.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server 2013 Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server 2013 cmdlets.

      注意

      [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱<權限>與<Add-SPShellAdmin>。If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about 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.CoauthoringMaxAuthors = <MaxAuthors>
    $mysite.WebApplication.WebService.Update()
    
  3. 取代:Replace:

    • <ServerName>_之伺服器的名稱。<ServerName>_ with the name of the server.

    • <MaxAuthors>_取代為允許的作者數上限。<MaxAuthors>_ with the maximum number of authors to allow.

  4. 儲存檔案並新增 .ps1 副檔名,例如 SuggestedNameOfFile.ps1。Save the file and add the .ps1 extension, such as SuggestedNameOfFile.ps1.

    注意

    [!附註] 您可以使用不同的檔案名稱,但是必須將檔案儲存為副檔名為 .ps1 的 ANSI 編碼文字檔。You can use a different file name, but you must save the file as an ANSI-encoded text file whose extension is .ps1.

  5. 系統管理員身分啟動 SharePoint 2013 管理命令介面。Start the SharePoint 2013 Management Shell as Administrator.

    如需如何與 Windows Server 2012 互動的詳細資訊,請參閱<Windows Server 2012 的常見管理工作及瀏覽方式>。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. 在 PowerShell 命令提示字元處輸入下列命令:./SuggestedFileName.ps1At the PowerShell command prompt, type the following command: ./SuggestedFileName.ps1

另請參閱See also

概念Concepts

SharePoint Server 中的共同撰寫概觀 (英文)Overview of co-authoring in SharePoint Server