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 -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. Required fields are marked *

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