Microsoft.Graph PowerShell Module 1.25.0 released

Hi All,

Just a few Hours ago, Microsoft has released a new Version of Microsoft.Graph PowerShell Modules to the PowerShell Gallery. It is the third update of these Modules this Month!

Let’s check the installed Version and what’s available on the PowerShell Gallery

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

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)

To list the Modules you can use the following Command

Get-Module Microsoft.Graph* -ListAvailable

Let’s see if we can find the new Commands

Get-Command *alertv2* -Module Microsoft.Graph*

According to the Documentation you need the SecurityAlert.Read.All, SecurityAlert.ReadWrite.All Permissions

Connect-MgGraph -scopes 'SecurityAlert.Read.All'
Get-MgSecurityAlertV2

Let’s look at one Alert in detail

Get-MgSecurityAlertV2 -AlertId fa612c5e9d-2b83-8068-ec00-08daac7abdff
Get-MgSecurityAlertV2 -AlertId fa612c5e9d-2b83-8068-ec00-08daac7abdff | fl

Regards
Andres Bohren