Created
January 13, 2016 09:13
-
-
Save josy1024/30cc9b9a35de11e2f919 to your computer and use it in GitHub Desktop.
connect azure (office365 msonline service)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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