for Microsoft 365
Question
如何在 Windows 上使用 PowerShell 來管理 Microsoft 365?
Answer
您需要在您的 Windows 作業系統上安裝以下的工具:
・Windows Management Framework 4.0
・Microsoft Online Services Sign-In Assistant for IT Professionals RTW
・Azure Active Directory Module for Windows PowerShell (64-bit version)
注意:如果上面的「Azure Active Directory Module for Windows PowerShell (64位元)」不存在的情況下,您可以透過以下方法來安裝該工具:
1. 以「管理員」模式來開啟一個新的 PowerShell 命令列。
2. 執行以下的指令:
Install-Module MSOnline
3. 當遇到確認時,請輸入「 Y」並按 Enter 鍵(可以復數次)。
參考來源:
https://docs.microsoft.com/zh-tw/office365/enterprise/powershell/connect-to-office-365-powershell