POWERSHELL COMMAND
Get-XdrTenantContext
Retrieves the tenant context information from Microsoft Defender XDR.
Gets the tenant context information from the Microsoft Defender XDR portal, including tenant settings and configuration details. This function includes caching support with a 30-minute TTL to reduce API calls.
Syntax
Get-XdrTenantContext [-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-XdrTenantContext
Retrieves the tenant context using cached data if available.
Get-XdrTenantContext -Force
Forces a fresh retrieval of the tenant context, bypassing the cache.
Output
Type: Object
Returns the tenant context configuration object.