Get-MgmtGraphGroupLifecyclePolicyCount
MgmtGraph: Retrieves the count of group lifecycle policies
#Requires -Version 5.1
#Requires -Modules Microsoft.Graph.Groups
[CmdletBinding()]
Param ()
Process {
try {
$count = Get-MgGroupLifecyclePolicyCount -ErrorAction Stop
$result = [PSCustomObject]@{
LifecyclePolicyCount = $count
Timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
}
Write-Output $result
}
catch {
throw
}
}This script has no configurable parameters.