Connect to Office 365 Exchange Online using PowerShell

Any Exchange admin will be used to administering their environment with PowerShell.  Here is how to connect to your Office 365 Exchange Online environment with just a few commands:

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Note: If multi-factor authentication is enabled you will need to download and install the Exchange Online PowerShell Module:

  1. Log in to the Exchange admin centre
  2. Click the Hybrid link from the navigation pane on the left
  3. Click the configure button for the Exchange Online PowerShell Module
  4. Click Install when prompted
  5. Click Run if prompted
  6. Connect using the following command and authenticate as normal when prompted:
Connect-EXOPSSession -UserPrincipalName user@domain.com
[BlogBookmark] [Blogsvine] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [LinkedIn] [MySpace] [Reddit] [Slashdot] [StumbleUpon] [Twitter] [Windows Live] [Yahoo!] [Email]