Back to script samples page
Connect to Azure Active Directory

These PowerShell commands will connect you to your Azure Active Directory service.

This will enable you to administer Azure Active Directory using PowerShell as well as configure some settings that are only accessible through PowerShell

#Connecting to Azure Active Directory

#This first command will import the Azure Active Directory module into your PowerShell session.
Import-Module MSOnline

#Capture administrative credential for future connections.
$credential = get-credential

#Establishes Online Services connection to Azure Active Directory  
Connect-MsolService -Credential $credential
Downloaded 500 times
- - - - - (0)
Comments

No Comments