Azure Active Directory PowerShell for Graph
AzureAD PowerShell Modunle
You need install AzureAD module only once. In the next time, run to connect to Azure Active Directory PowerShell for Graph.
##Connect to Azure Active Directory PowerShell for Graph
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force;
Install-PackageProvider -Name NuGet -Force;
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name AzureAD
Connect-AzureAD
Get-AzureADTenantDetail | Select-Object ObjectId, DisplayName
Disconnect-AzureAD
5/5 - (1 vote)