Office 365 exchange powershell

Quickly Connect to exchange console on Office 365

  1. Open PowerShell session as admin
  2. Store your required credentials in a variable
$Cred = Get-Credential
  1. Enter credentials when prompted
Office 365 exchange powershell 1
  1. Connect to Exchange online
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
  1. Import Session
Import-PSSession $Session -DisableNameChecking

Disk Connect after session

Import-PSSession $Session -DisableNameChecking

Leave a Reply

Your email address will not be published.

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