In Office 365 you can do and automate a lot with Windows Powershell. Now this small post shows you how you can connect to Office 365 with Powershell.
- Install the Microsoft Online Services Sign-In Assistant
32-bit
64-bit - Install the Microsoft Online Services Module for Windows PowerShell
32-bit
64-bit - Open Powershell and import the MsOnline Module or use the desktop shortcut which was created by the installer.
Import-Module MsOnline
- Connect to your Microsoft Office 365 account
Connect-MsolService
Use your Office 365 LiveID to login (for example [email protected])
- Now you can start working with Windows Powershell in your Office 365 account, if you need some more help about the available Powershell cmdlets you can list them with
Get-Command -Module MsOnline




