← All XDRInternals commands

POWERSHELL COMMAND

Set-XdrEndpointDeviceAssetValue

Sets the asset value on endpoint devices in Microsoft Defender XDR.

View source ↗

Updates the asset value classification for one or more endpoint devices. Valid asset values are Low, Normal, and High.

Syntax

Set-XdrEndpointDeviceAssetValue [-DeviceId] <string[]> [-AssetValue] <string> [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters

-DeviceId

Property Value
Type String[]
Required Yes
Position 1
Pipeline input true (ByPropertyName)
Default Not documented

One or more device IDs (SenseMachineIds) identifying the target devices.

-AssetValue

Property Value
Type String
Required Yes
Position 2
Pipeline input No
Default Not documented

The asset value to assign. Valid values: Low, Normal, High.

-WhatIf

Property Value
Type SwitchParameter
Required No
Position named
Pipeline input No
Default Not documented

Shows what would happen if the command runs. The command is not run.

-Confirm

Property Value
Type SwitchParameter
Required No
Position named
Pipeline input No
Default Not documented

Prompts for confirmation before making changes.

Examples

Set-XdrEndpointDeviceAssetValue -DeviceId "abc123" -AssetValue High
Sets the asset value to High on the specified device.
Set-XdrEndpointDeviceAssetValue -DeviceId "abc123", "def456" -AssetValue Low
Sets the asset value to Low on multiple devices.

Output

Type: Object

Returns the API response.

View source