Office 365: Connect to Exchange Online Powershell

 

With an on-premises Exchange environment, you would connect using the Exchange Shell which you would need installed on the server or workstation. If you’re new to Exchange Online, things are a little different. Instead, you use the regular Windows Powershell, create a Remote Powershell Session, then run your commands.

Step 1

Open Powershell

Step 2

Type $UserCredential = Get-Credential and enter your credentials when prompted

Step 3

Start a new session by typing:

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

Step 4

Run Import-PSSession $Session -DisableNameChecking

Step 5

End your Exchange Online Powershell by running Remove-PSSession $Session


You can also use the TechNet Gallery Script.

You can review Microsoft’s documentation here for more information.


Comments

Popular posts from this blog

Seedr.cc Review

Reinstall Windows Store in Windows 10

Bypass PowerShell Execution Policy to Pwn Windows

How to Install Tor Browser in Kali Linux 2020

How to Move Windows to SSD

How to Install Android on Your PC Without an Emulator