Microsoft.Graph PowerShell Module 1.26.0 released
Hi All,
Yesterday Microsoft has released a new Version of Microsoft.Graph PowerShell Modules to the PowerShell Gallery.
Microsoft.Graph 1.26.0
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_01.jpg)
Microsoft Graph PowerShell Release Notes
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_02.jpg)
Let's check the installed Version and what's available on the PowerShell Gallery
Get-InstalledModule Microsoft.Graph
Find-Module Microsoft.Graph
Get-InstalledModule Microsoft.Graph
Find-Module Microsoft.Graph
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_03.jpg)
To install the newest Version of the PowerShell Modules and also uninstalling the old Versions, you can use my GitHub Script. It takes a while until all Modules are installed. Wait until "Cleanup finished" is shown.
#Run Script directly from GitHub
$ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/ExchangeOnline/GraphAPI/Cleanup-GraphModules.ps1"
Invoke-Expression $($ScriptFromGitHub.Content)
#Run Script directly from GitHub
$ScriptFromGitHub = Invoke-WebRequest "https://raw.githubusercontent.com/BohrenAn/GitHub_PowerShellScripts/main/ExchangeOnline/GraphAPI/Cleanup-GraphModules.ps1"
Invoke-Expression $($ScriptFromGitHub.Content)
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_04.jpg)
To list the Modules you can use the following Command
Get-Module Microsoft.Graph* -ListAvailable
Get-Module Microsoft.Graph* -ListAvailable
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_05.jpg)
Let's test it out
Connect-MgGraph -Scopes 'User.Read.All'
Get-MgUser -UserId a.bohren@icewolf.ch
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_06.jpg)
Don't forget to update the Microosft.Graph PowerShell Modules on Azure Automation
Update Microsoft.Graph Modules on Azure Automation with Managed Identity
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_07.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_08.jpg)
![](https://icewolffile.blob.core.windows.net/$web/202304/MicrosoftGraph_1.26.0_09.jpg)
Regards
Andres Bohren
![](https://icewolffile.blob.core.windows.net/$web/logos/powershell_logo.png)