Wednesday, June 13, 2012

Connecting to MS Office 365 Via Power Shell


1.  Download and install Microsoft Online Services Sign-In Assistant version 7.0 or greater
- http://onlinehelp.microsoft.com/office365-enterprises/hh124998.aspx

2.  Download the Microsoft Online Services Module
- http://onlinehelp.microsoft.com/office365-enterprises/hh124998.aspx

3.  Import the module
- PS C:\> Import-Module msonline

4.  Connect to the MS Online Services
- PS C:\> $cred = Get-Credential


 cmdlet Get-Credential at command pipeline position 1
 Supply values for the following parameters:
   Credential
 PS C:\> Connect-MsolService -Credential $cred
 PS C:\>

5.  PS C:\> Get-Command -Module msonline

    CommandType     Name                                                Definition
    -----------     ----                                                ----------
    Cmdlet          Add-MsolGroupMember                                 Add-MsolGroupMember
    Cmdlet          Add-MsolRoleMember                                  Add-MsolRoleMember

No comments:

Post a Comment