Connect to Exchange Online with PowerShell

Hello,

You can connect to Exchange Online with those two lines (you’ll be prompted for Credentials) :

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential (Get-Credential) -Authentication Basic –AllowRedirection
Import-PSSession $Session

Once connected you’ll be able to use all Exchange Online cmdlet in your current shell with implicit remoting. The experience is very similar to an Exchange shell to an on premise Exchange server.

Note : Some cmdlets differ. When in doubt, use Get-Help or TechNet.

3 thoughts on “Connect to Exchange Online with PowerShell

  1. Pingback: Enable Out of Office Shared Mailbox - It for DummiesIt for Dummies

  2. Pingback: Measure Office 365 Usage PowerShell - It for DummiesIt for Dummies

  3. Pingback: Get Mail Sent Receive Outside Working Hours PowerShell - It for DummiesIt for Dummies

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.