Connect to Exchange Online

Set-ExecutionPolicy RemoteSigned

When prompted to approve the policy change, type A for Yes to All

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

Advertisements

3 thoughts on “Connect to Exchange Online

    1. Thank you Paul. Primarily using this blog as a means of keeping track of tools, scripts, code and solutions for myself. If it helps someone else, I’m more than happy to see it happen.

      Like

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s