powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMHostNetworkAdapter



NAME
Get-VMHostNetworkAdapter

SYNOPSIS
Retrieves the host network adapters on a vSphere server.

SYNTAX
Get-VMHostNetworkAdapter [[-VMHost] ] [-Physical] [-VMKernel] [-Console] [[-Name] ] [-Id g[]>] [-Server ] []

Get-VMHostNetworkAdapter [[-DistributedSwitch] ] [-Physical] [-VMKernel] [-Console] [[-Name] <
String[]>] [-Id ] [-Server ] []


DESCRIPTION
Retrieves the host network adapters on a vSphere server.


PARAMETERS
-VMHost
Specify the hosts whose network adapters you want to retrieve. The position of this parameter is deprecated and
might change in a following release.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Physical
Indicate that you want to retrieve only physical network adapters.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-VMKernel
Indicate that you want to retrieve only VMKernel virtual network adapters.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Console
Indicate that you want to retrieve only service console virtual network adapters.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Name
Specify the names of the host network adapters you want to retrieve. The position of this parameter might chang
e in a following release.

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Id
Specify the Ids of the host network adapters you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-DistributedSwitch
Filter the available network adapters by the virtual switches they are connected to.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
HostNic


NOTES




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

C:\PS>Get-VMHostNetworkAdapter -VMKernel | fl


Retrieves information about the VMKernel network adapters on the default server.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VMHostNetworkAdapter.html
New-VMHostNetworkAdapter
Remove-VMHostNetworkAdapter
Set-VMHostNetworkAdapter