← All XDRInternals commands

POWERSHELL COMMAND

Get-XdrEndpointDeviceOsVersionFriendlyName

Retrieves all OS version friendly names from Microsoft Defender for Endpoint.

View source ↗

Gets a list of all operating system version friendly names from the Microsoft Defender XDR portal. This function includes caching support with a 30-minute TTL to reduce API calls.

Syntax

Get-XdrEndpointDeviceOsVersionFriendlyName [-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-XdrEndpointDeviceOsVersionFriendlyName
Retrieves all OS version friendly names using cached data if available.
Get-XdrEndpointDeviceOsVersionFriendlyName -Force
Forces a fresh retrieval of OS version friendly names, bypassing the cache.

Output

Type: Array

Returns an array of OS version friendly name strings.

View source