Monday, 5 December 2011

Install the Microsoft Online Services Module for Windows PowerShell

After you have deployed Active Directory Federation Services 2.0 (Ad FS 2.0), the next step to set up single sign-on is to download, install, and configure the Microsoft Online Services Module for Windows PowerShell. This will setup a trust between your AD FS and Office 365 Federation Gateway.
To install and configure the module follow these instructions:
First you have to make sure your system meets the requirements for the Microsoft Online Services Module:

  • Operating system: Use Windows 7 or Windows Server 2008 R2.
  • Microsoft .NET Framework: You must turn on the Microsoft .NET Framework 3.51 feature in Windows 7 or Windows Server 2008 R2.
  • Windows PowerShell 2.0 and AD FS 2.0: In order to run the cmdlets to set up single sign-on, you must turn on the Windows PowerShell 2.0 feature, and you must have administrator privileges on the AD FS 2.0 server.
  • All Office 365 software updates: From the Office 365 downloads page, install the required updates. To access the Office 365 downloads page, sign in to the Office 365 portal, and, under Resources, click Downloads. These updates are required because the features in Office 365 will not work properly without the appropriate versions of operating systems, browsers, and software.
Download Microsoft Online Services Module:
Download the 32-bit module
Download the 64-bit module

On the popup page click Run
On the Welcome screen click Next
On the License Terms page check I accept the terms in the License Terms and click on Next button
On the Installation Location page click Next button
On the Ready to Install page hit the Install button
Installation may take several minutes …
Once there click the Finish button to exit the setup

Now that you have installed the module, the next step is to configure the Microsoft Online Services Module for Windows PowerShell for single sign-on


  1. I get following error during installation:

    In order to install Microsoft Online Services Module for Windows PowerShell, you must have Windows PowerShell 2.0 or greater installed on this computer.

    I checked version - it's 2.0 installed (also Win7 SP1 incl. .Net 3.51 is installed)... any ideas?

    Regards Markus

  2. same as me i got the same error an idea

  3. download from 7.2 from link

  4. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Online Training India. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.