Office 365–Connect to MsOnline using PowerShell

The administration and configuration of Office 365 can done using PowerShell. To connect to the Office 365, you need the appropriate modules installed. These modules are available from Microsoft website. This article describes how to connect to Office 365 provider.

  1. Install the Microsoft Online Services Sign-In Assistant
    32-bit
    64-bit
  2. Install the Microsoft Online Services Module for Windows PowerShell
    32-bit
    64-bit
  3. Open PowerShell and import the MsOnline Module or use the desktop shortcut which was created by the installer.Program Manager_2012-03-28_14-30-58


    Import—Module MsOnline

    Microsoft Online Services Module for Windows PowerShell_2012-03-28_14-31-57

  4. Connect to your Microsoft Office 365 accountConnect-MsolService

    Enter Credentials_2012-03-28_14-32-55

    Use your Office 365 LiveID to login (for example username@company.onmicrosoft.com)

  5. 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 withGet-Command –Module MsOnline

    Microsoft Online Services Module for Windows PowerShell_2012-03-28_14-34-22

have phun!