Get-VMHostPciDevice

This cmdlet retrieves the PCI devices on the specified hosts.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
optional
DeviceClass
PciDeviceClass[] named Limits results to devices of the specified classes.
optional
Name
String[] named
  • wildcards
  • Filters the PCI devices by name.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null 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.
    optional
    VMHost
    VMHost[] named
  • pipeline
  • 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.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.VMHostPciDevice

    Examples


    Example 1

    Get-VMHost "MyHost" | Get-VMHostPciDevice

    Retrieves the PCI devices on the "MyVMHost" host.

    Related Commands

    Feedback

    Was this page helpful?