Skip to content

Instantly share code, notes, and snippets.

@win2000b
Last active June 1, 2017 08:44
Show Gist options
  • Save win2000b/373118ffe4a660064137f3620759936b to your computer and use it in GitHub Desktop.
Save win2000b/373118ffe4a660064137f3620759936b to your computer and use it in GitHub Desktop.
Connect to Exchange Online
$Credential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment