POWERSHELL COMMAND
Get-XdrEndpointDeviceModel
Retrieves all device models from Microsoft Defender for Endpoint.
Gets a list of all device models (hardware models) from the Microsoft Defender XDR portal. This function includes caching support with a 30-minute TTL to reduce API calls.
Syntax
Get-XdrEndpointDeviceModel [-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-XdrEndpointDeviceModel
Retrieves all device models using cached data if available.
Get-XdrEndpointDeviceModel -Force
Forces a fresh retrieval of device models, bypassing the cache.
Output
Type: Array
Returns an array of device model names.