Connecting to Exchange Online using PowerShell

Exchange Online is part of the Office 365 Suite. The Exchange Online Management Center is used to manage and maintain the Exchange online mailboxes. Power Shell can also be used to accomplish these tasks. In order to connect to Exchange Online using Windows Power Shell, one would have to follow these steps-


  1. Run Windows Power Shell as an Administrator.
  2. Run this cmdlet Set-ExecutionPolicy RemoteSigned
  3. $UserCredential= Get-Credential
  4. A Windows PowerShell dialog box would pop up, type in your Office 365 Credentials.
  5. Then run this cmdlet $Session= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirectionScreenshot (117).png
  6. Import-PSSession $Session
  7. Once you have completed your work, you can close the session by Remove-PSSession $Session

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s