Skip to content

Instantly share code, notes, and snippets.

@veritas06
Created September 29, 2017 22:48
Show Gist options
  • Save veritas06/b79d31acac014735bc0f5743e49c03bc to your computer and use it in GitHub Desktop.
Save veritas06/b79d31acac014735bc0f5743e49c03bc to your computer and use it in GitHub Desktop.
[Office 365 Login] #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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment