Skip to content

Instantly share code, notes, and snippets.

@Josh00
Created July 12, 2019 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Josh00/f700008f332d15323b76baf973eb7506 to your computer and use it in GitHub Desktop.
Save Josh00/f700008f332d15323b76baf973eb7506 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 -DisableNameChecking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment