Microsoft.Graph PowerShell Modules 2.20.0 released

Microsoft.Graph PowerShell Modules 2.20.0 released

Hi All,

A few Hors ago, Microsoft has released the Version 2.20.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.

Release Notes

  • [v2] Weekly OpenApiDocs Refresh
  • Metadata changes detection
  • Bump Azure.Identity from 1.11.0 to 1.11.4 in /src/Authentication/Authentication.Core
  • Fix Metadata breaking change detection workflow
  • Fix bug when populating command alias value in command metadata JSON
  • updates code of conduct to the latest standard
  • update author feedback label
  • Update language and project on issues and PRs
  • Remove outdated auto-add-project workflow file
  • chore!: replaces project bot token task by official one
  • remove label waiting for author feedback if issue closes
  • Disable blank issue template

I am using the new PSResourceGet here instead of the PowerShellGet commands.

I’ve changed the Scope from “AllUsers” to “CurrentUser” in this Article - with that you don’t need to Run PowerShell as Administrator anymore.

Show installed Versions and what’s available in PowerShell Gallery

Get-InstalledPSResource Microsoft.Graph -Scope CurrentUser
Get-InstalledPSResource Microsoft.Graph.Beta -Scope CurrentUser
Find-PSResource Microsoft.Graph
Find-PSResource Microsoft.Graph.Beta

Uninstalling the old Microsoft.Graph Modules

Get-InstalledPSResource Microsoft.Graph -Scope CurrentUser -ErrorAction SilentlyContinue | Uninstall-PSResource -Scope CurrentUser -SkipDependencyCheck
Get-InstalledPSResource Microsoft.Graph* -Scope CurrentUser -ErrorAction SilentlyContinue | Uninstall-PSResource -Scope CurrentUser -SkipDependencyCheck

Installing the New Microsoft.Graph Modules

Install-PSResource Microsoft.Graph -Scope CurrentUser -WarningAction SilentlyContinue
Install-PSResource Microsoft.Graph.Beta -Scope CurrentUser -WarningAction SilentlyContinue

List all the Modules

Get-PSResource Microsoft.Graph.* -Scope CurrentUser

Some basic testing

Connect-MgGraph -Scopes -NoWelcome
Get-MgUser -UserId

Or you can simply use my M365PSProfile Module - find the Documentation here:

Install-PSResource -Name M365PSProfile

Don’t forget to update the Microsoft.Graph Modules on Azure Automate for PowerShell 5.1 and 7.2. You can use my Azure Runbook for updating the Modules

Andres Bohren

M365 Logo

PowerShell Logo