Skip to main content

Get-LXCODeviceInventory

This cmdlet returns inventory data about a specific managed device.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCODeviceInventory [-Connection LXCOConnection]
-DeviceId String
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Orchestrator server. If no connection is specified, the result from the last Connect-LXCO cmdlet is used.
-DeviceId String
Specifies the ID of the device to return inventory data.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

Examples

The following example returns inventory data about a specific device

$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck

$result = Get-LXCODeviceInventory `
-DeviceID 00632D78DE644E23B712E200FE449787-7AF5D198CECF431AAEC674C7CA5A29B5
$result | Format-List

Disconnect-LXCO