← All XDRInternals commands

POWERSHELL COMMAND

Get-XdrIdentityStatistic

Retrieves aggregated identity statistics from Microsoft Defender for Identity.

View source ↗

Gets aggregated identity data and statistics from Microsoft Defender for Identity, including counts and metrics across all identities. This function includes caching support with a 10-minute TTL to reduce API calls.

Syntax

Get-XdrIdentityStatistic [-Force] [<CommonParameters>]

Parameters

-Force

Property Value
Type SwitchParameter
Required No
Position named
Pipeline input No
Default False

Bypasses the cache and forces a fresh retrieval from the API.

Examples

Get-XdrIdentityStatistic
Retrieves identity statistics using cached data if available.
Get-XdrIdentityStatistic -Force
Forces a fresh retrieval of identity statistics, bypassing the cache.

Output

Type: Object

Returns aggregated identity statistics.

View source