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 -Name MSOnline
3. 当遇到确认时,请输入“ Y”并按 Enter 键(可以复数次)。
参考来源:
https://docs.microsoft.com/zh-tw/office365/enterprise/powershell/connect-to-office-365-powershell