Get-VMHostNetworkStack

This cmdlet retrieves the host network stacks on a vCenter Server system.

Syntax

-Id  <String[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Id
String[] named Specifies the IDs of the host network stacks you want to retrieve.
optional
Server
VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet.

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

    Parameters

    Required Parameter Name Type Position Features Description
    optional
    Name
    String[] 1
  • wildcards
  • Specifies the names of the host network stacks you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet.
    optional
    VMHost
    VMHost[] named
  • wildcards
  • pipeline
  • Specifies the hosts whose network stacks you want to retrieve.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.Networking.HostNetworkStack

    Examples


    Example 1

    Get-VMHostNetworkAdapter

    Retrieves all network stacks on servers that you are connected to.

    Example 2

    $myVMHost = Get-VMHost -Name MyVMHost
    Get-VMHostNetworkAdapter -VMHost $myVMHost

    Retrieves all network stacks on the specified host.

    Related Commands

    Feedback

    Was this page helpful?