PowerCLI Reference

Get-VMHostPciDevice

Synopsis

This cmdlet retrieves the PCI devices on the specified hosts.

Syntax

Get-VMHostPciDevice [-DeviceClass <PciDeviceClass[]>] [-Name <String[]>] [-Server <VIServer[]>] [-VMHost <VMHost[]>] [<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.