Use Windows PowerShell to Manage Office 365

Use Windows PowerShell to Manage Office 365. Make sure that you are using the PowerShell version that you downloaded from the download section in the Admin Portal.


  1. Right click the shortcut to ‘Microsoft Online Services Module for Windows PowerShell’ from the desktop and select “Run as Administrator…”


  2. Set the Execution Policy for the local server to Remote Signed
    1. Set-ExecutionPolicy –ExecutionPolicy RemoteSigned


  3. Set your credential Variable
    1. $cred=Get-Credential


  4. Enter the Username and password for the global admin account on Office 365 when prompted


  5. Connect to Microsoft Online Services with the credential variable set previously


  6. Connect-MsolService – Credential $cred

A list of all the commands can be found here:


Thanks for visiting and reading my posts. I am always looking for more ideas. Please comment or email me with what you would like to see.

Kelsey Epps

Office 365 MVP

Email Me Follow me on Twitter Connect with me on LinkedIN Facebook Me

Leave a Reply