Office 365–Connect to MsOnline using PowerShell

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

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!

2 thoughts on “Office 365–Connect to MsOnline using PowerShell

  1. Pingback: Office 365–Change the password expiration policy « Office 365 « Microsoft « ..:: www.christiano.ch //::..

  2. When I run the PowerShell module this error appears:

    Import-Module : Could not load file or assembly ‘file:///C:\Windows\system32\Wi
    ndowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automatio
    n.PSModule.dll’ or one of its dependencies. This assembly is built by a runtime
    newer than the currently loaded runtime and cannot be loaded.
    At line:1 char:14
    + Import-Module <<<< MSOnline
    + CategoryInfo : InvalidOperation: (:) [Import-Module], BadImageF
    ormatException
    + FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Com
    mands.ImportModuleCommand

    How can I fix it?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.