Monday, 5 December 2011

Configure the Microsoft Online Services Module for Windows PowerShell

To convert a domain, that you have added and verified in your Office 365 account, to a single sign-on domain (federated domain), follow these steps:

Navigate to Microsoft Online Services Module by going to Start-> All Programs -> Microsoft Online Services

Right click on Microsoft Online Services Module for Windows PowerShell and click Run as administrator
Once PowerShell is open, run $cred=Get-Credential. When the cmdlet prompts you for credentials, type your Office 365 admin username and password.
Run Connect-MsolService -Credential $cred. This cmdlet connects PowerShell session to your Office 365 account.
Run Convert-MsolDomainToFederated -DomainName <yourdomain>, where <yourdomain> is a domain that you have already verified in your Office 365 account and want to use it for identity federation. This cmdlet changes the default standard cloud based authentication for yourdomain to single sign-on authentication.

Now that you have converted configured your domain for identity federation, the next step for Single Sign-on is to set up Active Directory synchronization.


  1. Hi Amin, When I installed and ran it as admin there is an error here:
    Import-Module : Could not load file or assembly 'file:///C:\Windows\system32\Wi
    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
    + FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Com
    What can be the solution? Thanks.

  2. Google has come to be seen as a company driven not by the incentive of making money, but rather by the pursuit of knowledge through technological innovation; as a result, the company has used this justification to convince its competitors that it is not interested in defeating competition, but rather providing easier access to information for everyone, and hence making the world a better place. More info

  3. It hard to get credential with the microsoft crm. Microsoft CRM Services are a software package designed to implement state-of-the-art IT technology to optimize Customer Relationship Management for your organization, no matter what its size. Source from here