POWERSHELL COMMAND
Get-XdrEndpointDeviceWindowsReleaseVersion
Retrieves all Windows release versions from Microsoft Defender for Endpoint.
Gets a list of all Windows release versions (e.g., 21H2, 22H2) from the Microsoft Defender XDR portal. This function includes caching support with a 30-minute TTL to reduce API calls.
Syntax
Get-XdrEndpointDeviceWindowsReleaseVersion [-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-XdrEndpointDeviceWindowsReleaseVersion
Retrieves all Windows release versions using cached data if available.
Get-XdrEndpointDeviceWindowsReleaseVersion -Force
Forces a fresh retrieval of Windows release versions, bypassing the cache.
Output
Type: Array
Returns an array of Windows release version strings.