for Microsoft 365
Question
How to use PowerShell to manage Microsoft 365?
Answer
You will need to install the following programs on your Windows PC in order to use PowerShell.
・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)(*)
(*)Note: "Azure Active Directory Module for Windows PowerShell (64-bit version)" can no longer be installed in Microsoft web site. You can install this module through running the following commands in PowerShell:
1. Open a new PowerShell with "Admin permissions"
2. Execute the following Command:
Install-Module -Name MSOnline
3. Please type in "Y" and press Enter key for confirmation (more than once may be required.)
Reference:
https://docs.microsoft.com/en-us/office365/enterprise/powershell/connect-to-office-365-powershell