POWERSHELL COMMAND
Get-XdrVulnerabilityManagementProducts
Retrieves products from Vulnerability Management.
Gets product information from Threat and Vulnerability Management (TVM) in Microsoft Defender XDR. This function includes caching support with a 30-minute TTL to reduce API calls. By default, returns the products array.
Syntax
Get-XdrVulnerabilityManagementProducts [-Top <int>] [-Force] [<CommonParameters>]
Get-XdrVulnerabilityManagementProducts [-Force] [-CountOnly] [<CommonParameters>]
Get-XdrVulnerabilityManagementProducts [-Force] [-HardwareVendorsInventoryCount] [<CommonParameters>]
Get-XdrVulnerabilityManagementProducts [-Force] [-BiosVendorsInventoryCount] [<CommonParameters>]
Get-XdrVulnerabilityManagementProducts [-Force] [-ProcessorVendorsInventoryCount] [<CommonParameters>]
Parameters
-Top
| Property | Value |
|---|---|
| Type | Int32 |
| Required | No |
| Position | named |
| Pipeline input | No |
| Default | 0 |
Limits the number of results returned. Valid range is 1-10000.
-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.
-CountOnly
| Property | Value |
|---|---|
| Type | SwitchParameter |
| Required | No |
| Position | named |
| Pipeline input | No |
| Default | False |
Returns only the total count of products (numOfResults).
-HardwareVendorsInventoryCount
| Property | Value |
|---|---|
| Type | SwitchParameter |
| Required | No |
| Position | named |
| Pipeline input | No |
| Default | False |
Retrieves hardware vendors inventory count.
-BiosVendorsInventoryCount
| Property | Value |
|---|---|
| Type | SwitchParameter |
| Required | No |
| Position | named |
| Pipeline input | No |
| Default | False |
Retrieves BIOS vendors inventory count.
-ProcessorVendorsInventoryCount
| Property | Value |
|---|---|
| Type | SwitchParameter |
| Required | No |
| Position | named |
| Pipeline input | No |
| Default | False |
Retrieves processor vendors inventory count.
Examples
Get-XdrVulnerabilityManagementProducts
Retrieves all products using cached data if available.
Get-XdrVulnerabilityManagementProducts -Top 100
Retrieves the first 100 products.
Get-XdrVulnerabilityManagementProducts -Force
Forces a fresh retrieval of products, bypassing the cache.
Get-XdrVulnerabilityManagementProducts -CountOnly
Returns only the total number of products.
Get-XdrVulnerabilityManagementProducts -HardwareVendorsInventoryCount
Retrieves hardware vendors inventory count.
Output
Type: System.Object[]
Returns an array of product objects from TVM.
System.Int64 When -CountOnly is specified, returns the total count as an integer.
System.Management.Automation.PSCustomObject When vendor inventory parameters are specified, returns a summary object.
Suppress false positive: Switch parameters are used via $PSCmdlet.ParameterSetName, not direct reference