Skip to content

Instantly share code, notes, and snippets.

@lfbayer
Created April 17, 2018 12:03
Show Gist options
  • Save lfbayer/a70aab5d6ee8e4faa397e5aa13f9063a to your computer and use it in GitHub Desktop.
Save lfbayer/a70aab5d6ee8e4faa397e5aa13f9063a to your computer and use it in GitHub Desktop.
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession -Session $Session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment