The pace of change in the Microsoft SaaS space continues at its breakneck rate.
Next to experience this impetus is the retirement of the MSOL and AzureAD powershell modules.
We've used these to create reports on license usage and to reanimate accounts for mailboxes brought back from a deleted state.
We will have a new set of commandlets to learn but are promised greater speed and functionality by way of compensation.
Prequisites
Powershell 5.1 or 7 are required to use these commandlets.
Install-PackageProvider -Name NuGet -Force
Don't forget to set the execution policy to allow scripts to run otherwise these commands will not run
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Installation
Install-Module Microsoft.Graph -Scope AllUsers
Verify Installation
Get-InstalledModule Microsoft.Graph
If the installation was successful then connect using the following command
Connect-MgGraph -Scopes "User.Read.All","Group.ReadWrite.All"
No comments:
Post a Comment