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 comment:

  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
    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
    What can be the solution? Thanks.

    ReplyDelete