Exchange

Connect to Exchange on-premisses

link
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 http://SERVER.contoso.com/PowerShell/ -Authentication Kerberos -Credential $UserCredential

Import-PSSession $Session

Install the Exchange Online V2 module

link

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

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