使用 Microsoft 365 的 PowerShell 停用 Sway 的存取權Disable access to Sway with PowerShell for Microsoft 365

本文適用於 Microsoft 365 企業版和 Office 365 企業版。This article applies to both Microsoft 365 Enterprise and Office 365 Enterprise.

ManageSway.ps1 PowerShell 腳本可讓您查看及停用 Microsoft 365 組織中的服務,包括 Sway。The ManageSway.ps1 PowerShell script lets you view and disable services in your Microsoft 365 organization, including Sway. 這個指令碼會自動化下列主題中所述的程序︰This script automates the procedures that are described in the following topics:

您必須下載與指令碼相關聯的兩個檔案︰You need to download the two files that are associated with the script: