Skip to content

Get-MgmtGraphGroupDelta

MgmtGraph: Audits incremental changes to Microsoft Graph groups

#Requires -Version 5.1
#Requires -Modules Microsoft.Graph.Groups

[CmdletBinding()]
Param ()

Process {
    try {
        $delta = Get-MgGroupDelta -All -ErrorAction Stop
        
        $results = foreach ($g in $delta) {
            [PSCustomObject]@{
                DisplayName     = $g.DisplayName
                Id              = $g.Id
                DeletedDateTime = $g.DeletedDateTime
                Timestamp       = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
            }
        }

        Write-Output $results
    }
    catch {
        throw
    }
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.