PowerCLI Reference

Get-VMHostPciDevice

Synopsis

This cmdlet retrieves the PCI devices on the specified hosts.

Syntax

Get-VMHostPciDevice [-Name <String[]>] [-VMHost <VMHost[]>] [-DeviceClass <PciDeviceClass[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version

Detailed Description

This cmdlet retrieves the PCI devices on the specified hosts.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
DeviceClassPciDeviceClass[]Limits results to devices of the specified classes.falsefalse
NameString[]Filters the PCI devices by name.

Note: This parameter is not case-sensitive.
falsefalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse
VMHostVMHost[]Specifies the hosts whose PCI devices you want to retrieve. If not specified, the cmdlet retrieves PCI devices for all hosts on all default connections.falsetrue (ByValue)

Return Type

Zero or more VMHostPciDevice objects

Notes

Examples

-------------- Example 1 --------------

Get-VMHost "MyHost" | Get-VMHostPciDevice

Retrieves the PCI devices on the "MyVMHost" host.


Copyright © VMware, Inc. All rights reserved.