Skip to content

Instantly share code, notes, and snippets.

@mattmcnabb
Created May 18, 2015 00:40
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 mattmcnabb/984ccb5c148eb93d4dd6 to your computer and use it in GitHub Desktop.
Save mattmcnabb/984ccb5c148eb93d4dd6 to your computer and use it in GitHub Desktop.
Connect to Sharepoint, Lync, and Azure Active Directory
# Connect to Azure Active Directory to manage users, groups and licensing
Connect-MsolService -Credential $Credential
# Connect to Sharepoint Online for domain psescape.onmicrosoft.com
Connect-SpoService -Credential $Credential -Url https://psescape-admin.sharepoint.com
# Connect to Lync Online
$Session = New-CsOnlineSession -Credential $Credential
Import-PSSession $Session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment