Wednesday, 3 February 2016

Exchange Online - Connecting With Powershell

1. Open Powershell and run;
$UserCredential = Get-Credential
2. Enter your Exchange Online credentials
3. Run;
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
4. Run;
Import-PSSession $Session
When you are finished run;
Remove-PSSession $Session 

No comments:

Post a Comment