停用 SharePoint Server 中的共同撰寫Disable co-authoring in SharePoint Server

摘要:了解如何使用群組原則或使用 PowerShell 停用 SharePoint Server 中的共同撰寫功能。Summary: Learn how to disable co-authoring functionality in SharePoint Server by using Group Policy or by using PowerShell.

在 SharePoint Server 中的共同撰寫讓多位使用者能夠在文件中,任何時候不會干擾彼此的變更。雖然我們已工程設為可擴充又有效率的共同撰寫、 硬體限制有些組織可能會想要關閉降低伺服器效能上的任何其他效果的共同撰寫。Co-authoring in SharePoint Server makes it possible for multiple users to work on a document, at any time, without interfering with each other's changes. Although we have engineered co-authoring to be scalable and efficient, some organizations that have hardware limitations may want to turn off co-authoring to minimize any additional effects on server performance.

本文說明如何使用群組原則或使用 PowerShell 停用 SharePoint Server 中的共同撰寫功能。This article describes how to disable co-authoring functionality in SharePoint Server by using Group Policy or by using PowerShell.

停用 SharePoint Server 中的共同撰寫Disable co-authoring in SharePoint Server

有三種方法可以停用共同撰寫:There are three ways to disable co-authoring:

  • 您可以使用群組原則停用用戶端上的共同撰寫功能。如需詳細資訊,請參閱 < Group Policy overview for Office 2013You can use Group Policy to disable co-authoring functionality on the client-side. For more information, see Group Policy overview for Office 2013.

  • 您可以使用 Microsoft PowerShell 設定 DisableCoauthoring 伺服器屬性。這會停用 Word 及 PowerPoint 的文件的伺服器上的共同撰寫屬性。此屬性會套用至文件或製作的 Word 2010、 Word 2013、 Word Online、 PowerPoint 2010、 PowerPoint 2013 及 PowerPoint Web App 中的簡報。You can use Microsoft PowerShell to set the DisableCoauthoring server property. This disables the co-authoring property for Word and PowerPoint documents on the server. This property applies to documents or presentations that are authored in Word 2010, Word 2013, Word Online, PowerPoint 2010, PowerPoint 2013 and PowerPoint Web App.

  • 您可以啟用文件庫中的 [要求取出] 設定。此文件庫中的共同撰寫會停用。如需詳細資訊,請參閱設定需要簽出 in SharePoint Server 2013You can enable the Require Check Out setting in a document library. This disables co-authoring in the document library. For more information, see Configure Require Check Out in SharePoint Server 2013.

此工作的程序如下:Procedures in this task:

  • 使用群組原則停用共同撰寫To disable co-authoring by using Group Policy

  • 使用 Windows PowerShell 停用 Word 文件和 web 服務層級的 PowerPoint 簡報的共同撰寫To disable co-authoring for Word documents and PowerPoint presentations at the web service level by using Windows PowerShell

  • 使用 Windows PowerShell 停用 Word 文件與 web 應用程式層級的 PowerPoint 簡報的共同撰寫To disable co-authoring for Word documents and PowerPoint presentations at the web application level by using Windows PowerShell

    使用群組原則停用共同撰寫To disable co-authoring by using Group Policy

  1. 啟動[群組原則管理]Start Group Policy Management.

  2. 群組原則管理] 中展開您要設定原則之網域的樹系與網域] 節點,然後展開 [群組原則物件In Group Policy Management, expand the Forest and Domain nodes for the domain where you want to set the policy, and then expand Group Policy Objects.

  3. 選擇 (以滑鼠右鍵按一下) [群組原則物件其中共同撰寫設定的設定,然後選擇 [編輯]。Choose (right-click) the Group Policy Object where your co-authoring settings are configured, and then choose Edit.

  4. Word 2013、 展開 [使用者設定]、系統管理範本Microsoft Word 2013共同作業設定共同撰寫,然後開啟 (即按兩下)防止共同撰寫For Word 2013, expand User Configuration, Administrative Templates, Microsoft Word 2013, Collaboration Settings, Co-authoring, and then open (double-click) Prevent Co-authoring.

    PowerPoint 2013 的使用者設定系統管理範本Microsoft PowerPoint 2013共同作業設定共同撰寫],依序展開 [,,然後選擇 [防止共同撰寫For PowerPoint 2013, expand User Configuration, Administrative Templates, Microsoft PowerPoint 2013, Collaboration Settings, Co-authoring, and then choose Prevent Co-authoring.

  5. 在 [防止共同撰寫屬性] 對話方塊中,選取 [啟用],然後選擇[確定]In the Prevent Co-authoring Properties dialog box, select Enabled, and then choose OK.

    若要停用共同撰寫 word 文件和 PowerPoint 簡報在 web 服務層級使用 Windows PowerShell (儲存為指令碼並執行指令碼)To disable co-authoring for Word documents and PowerPoint presentations at the web service level by using Windows PowerShell (save as script and run script)

  6. 確認您具備下列成員資格: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 Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱<權限>與 Add-SPShellAdminIf 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.

  7. 將下列程式碼貼到 [記事本] 之類的文字編輯器:Paste the following code into a text editor, such as Notepad:

    $siteurl = "<servername>"
    $mysite=new-object Microsoft.SharePoint.SPSite($siteurl)
    $mysite.WebApplication.WebService.DisableCoauthoring = $true;
    $mysite.WebApplication.WebService.Update();
    
  8. 指定下列參數:Specify the following parameter:

參數Parameter Value
伺服器名稱servername
伺服器名稱Server name
  1. 儲存檔案並加上 .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.

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

  3. 變更至您儲存檔案的目錄。Change to the directory to which you saved the file.

  4. 在 PowerShell 命令提示字元處,輸入下列命令:At the PowerShell command prompt, type the following command:

    ./SuggestedFileName.ps1
    

    若要使用 Windows PowerShell (儲存為指令碼並執行指令碼) 來停用 Word 文件與 web 應用程式層級的 PowerPoint 簡報的共同撰寫To disable co-authoring for Word documents and PowerPoint presentations at the web application level by using Windows PowerShell (save as script and run script)

  5. 確認您具備下列成員資格: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 Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱<權限>與 Add-SPShellAdminIf 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.

  6. 將下列程式碼貼到 [記事本] 之類的文字編輯器:Paste the following code into a text editor, such as Notepad:

    $siteurl = "<servername>"
    $mysite=new-object Microsoft.SharePoint.SPSite($siteurl)
    $mysite.WebApplication.DisableCoauthoring = $true;
    $mysite.WebApplication.Update();
    
  7. 指定下列參數:Specify the following parameter:

參數Parameter Value
伺服器名稱servername
伺服器名稱Server name
  1. 儲存檔案並加上 .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.

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

  3. 變更至您儲存檔案的目錄。Change to the directory to which you saved the file.

  4. 在 PowerShell 命令提示字元處,輸入下列命令:At the PowerShell command prompt, type the following command:

    ./SuggestedFileName.ps1
    

另請參閱See also

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