Configure Windows PowerShell to Connect with O356

Posted on

Configuring Widnows PoserShell to be used with O365 is few steps process. To successfully run the Connect-MsolService PowerShell command, you need to:

  1. Find out what bitness your operating system is (x86 / 32-bit OR x64 / 64-bit). See Microsoft’s “Is my PC running the 32-bit or 64-bit version of Windows?” article for help.
  2. If necessary, install the appropriate bitness version of PowerShell 3.0
    Note 1: Windows6.0 is Windows Vista and Windows6.1 is Windows 7
    Note 2: If you get a message of “The update is not applicable to your computer.” during the install then either you downloaded the wrong version of you already have it installed
  3. Install the appropriate bitness version of the Microsoft Online Services Sign-In Assistant for IT Professionals
  4. Install the appropriate bitness version of the Windows Azure Active Directory Module for Windows PowerShell
    Note: If you get an error of “In order to install Windows Azure Active Directory Module for Windows PowerShell, you must have Microsoft Online Services Sign-In Assistant version 7.0 or greater installed on this computer.” and a resulting failed install, install the Microsoft Online Services Sign-In Assistant for IT Professionals BETA (you shouldn’t need to uninstall the normal version but I would recommend it).
  5. Run the appropriate bitness version of PowerShell
  6. Run the Import-Module MSOnline PowerShell command
  7. Finally, run the Connect-MsolService PowerShell command

Note: When I say “the appropriate bitness version” I mean to use 64-bit if available.

Once gone through above steps seuccessfully, Run the cmdlet Get-Module and you should see list of all imported modules along with MsOnline module. As shown below:

MsOline

Leave a Reply

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