Skip to content

Instantly share code, notes, and snippets.

@thisboyiscrazy
Last active April 21, 2016 19:16
Show Gist options
  • Save thisboyiscrazy/a8ab945a2dc4edbab723093cf51d5969 to your computer and use it in GitHub Desktop.
Save thisboyiscrazy/a8ab945a2dc4edbab723093cf51d5969 to your computer and use it in GitHub Desktop.
Power shell connect to office 365
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment