How to connect to Office 365 Exchange with powershell

 Fire up powershell

 

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

Import-PSSession $Session

To disconnect the session:

Remove-PSSession $Session
Reklamer

Kommentarer er stengt.

Opprett en gratis blogg eller et nettsted på WordPress.com.

opp ↑

%d bloggere like this: