![]() NAME Get-NetworkAdapter SYNOPSIS Retrieves the virtual network adapters available on a vSphere server. SYNTAX Get-NetworkAdapter [[-VM] ] [-Name DESCRIPTION Retrieves the virtual network adapters available on a vSphere server. The cmdlet returns a set of virtual network adapters assigned to the virtual machines, templates, and snapshots specified by the VirtualMachine, Template, and Snapshot parameters. At least one of these parameters must be provided. To specify a server different from the def ault one, use the -Server parameter. PARAMETERS -VM Specify the virtual machines from which you want to retrieve virtual network adapters. Required? false Position? 1 Default value Accept pipeline input? true (ByValue) Accept wildcard characters? true -Template Specify the templates from which you want to retrieve virtual network adapters. Required? false Position? 2 Default value Accept pipeline input? true (ByValue) Accept wildcard characters? true -Snapshot Specify the snapshots from which you want to retrieve virtual network adapters. Required? false Position? 3 Default value Accept pipeline input? true (ByValue) Accept wildcard characters? false -Id Specify the Id of the network adapters you want to retrieve. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? true -Name Specify the names of the 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 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 NetworkAdapter NOTES -------------- Example 1 -------------- C:\PS>Get-NetworkAdapter -VM VM Retrieves the network adapter assigned the VM virtual machine. MacAddress : 00:30:56:94:0a:1a WakeOnLanEnabled : True NetworkName : VM Network ConnectionState : VMware.VimAutomation.Client20.ConnectInfoImpl Id : VirtualMachine-vm-16/4000 Name : Network Adapter 1 RELATED LINKS Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-NetworkAdapter.html New-NetworkAdapter Remove-NetworkAdapter Set-NetworkAdapter |