Microsoft.Graph PowerShell Modules 2.4.0 released

Microsoft.Graph PowerShell Modules 2.4.0 released

Hi All,

Just a few Hours ago, Microsoft has released the Version 2.4.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.

PowerShell Gallery Microsoft.Graph 2.4.0

PowerShell Gallery Microsoft.Graph.Beta 2.4.0

Read more in the Release Notes

  • Refreshes the SDK with the latest APIs
  • Adds support for baseSitePage APIs and MTO APIs
  • Updates welcome message to include getting started links
  • Updates examples
  • Fixes Get-MgTeamChannel by disambiguating /allChannels (Get-MgAllTeamChannel) command from /channels

Show installed Versions and what’s available in PowerShell Gallery

Get-InstalledModule Microsoft.Graph
Get-InstalledModule Microsoft.Graph.Beta
Find-Module Microsoft.Graph
Find-Module Microsoft.Graph.Beta

Uninstalling the old Modules

Note that “Microsoft.Graph.*” will also include the Beta Modules

Get-InstalledModule Microsoft.Graph.* | Uninstall-Module -Force
Get-InstalledModule Microsoft.Graph | Uninstall-Module -Force

Install the new Modules from PowerShell Gallery

Install-Module Microsoft.Graph
Install-Module Microsoft.Graph.Beta -AllowClobber

List all the Modules

Get-Module Microsoft.Graph.* -ListAvailable

Some basic testing

Connect-MgGraph -Scopes
Get-MgUser -UserId

Andres Bohren

PowerShell Logo