Connect to Exchange on-premisses

The most common ways are to connect remotley to the Exchange server and then start the Exchange Management Shell or to use the Import-PSSession cmdlet to use Exchange PoSH commands on your local computer:

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Authentication Kerberos -Credential $UserCredential

Import-PSSession $Session

Install the Exchange Online V2 module


Install-Module PowershellGet -Force
Update-Module PowershellGet
Set-ExecutionPolicy Unrestricted
Install-Module -Name ExchangeOnlineManagement

To update the module

Update-Module -Name ExchangeOnlineManagement

To uninstall the module

Uninstall-Module -Name ExchangeOnlineManagement

Connect to Exchange Online using the EXO V2 module

$UserCredential = Get-Credential
Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true

Properties and property sets in the EXO V2 module

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License