Skip to content

Instantly share code, notes, and snippets.

@josy1024
Created January 13, 2016 09:13
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 josy1024/30cc9b9a35de11e2f919 to your computer and use it in GitHub Desktop.
Save josy1024/30cc9b9a35de11e2f919 to your computer and use it in GitHub Desktop.
connect azure (office365 msonline service)
# connect to azure and office365 with powershell
# 2016-01-13
# get password
$cred = Get-Credential
#office365 session
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $cred -Authentication Basic -AllowRedirection
Import-PSSession $Session
#azure AD connect
Connect-MsolService -Credential $cred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment