Changes the configuration of the virtual network adapter.


Set-NetworkAdapter [-NetworkAdapter] <NetworkAdapter[]> [-MacAddress <String>] [-NetworkName <String>] [-StartConnected [<Boolean>]] [-Connected [<Boolean>]] [-WakeOnLan [<Boolean>]] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands


Detailed Description

Changes the configuration of the virtual network adapter. You can change the MAC address and the network name, and to configure the Connected, StartConnected, and WakeOnLan properties of the adapter.


NameDescriptionRequired?Pipeline InputDefault Value
NetworkAdapterSpecify the virtual network adapter you want to configure.truetrue (ByValue)
MacAddressSpecify an optional MAC address for the virtual network adapter.falsefalse
NetworkNameSpecify the name of the network to which you want to connect the virtual network adapter.falsefalse
StartConnectedIf the value is $true, the virtual network adapter starts connected when its associated virtual machine powers on. If the value is $false, it starts disconnected.falsefalse
ConnectedIf the value is $true, the virtual network adapter is connected after its creation. If the value is $false, it is disconnected.falsefalse
WakeOnLanIndicate that wake-on-LAN is enabled on the virtual network adapter.falsefalse
WhatIfIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse
ConfirmIndicate that the cmdlet asks for confirmation before running.falsefalse

Input Type

Return Type




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

C:\PS>$adapter = Set-NetworkAdapter -NetworkAdapter $oldAdapter -MacAddress '00:
50:56:a1:00:00' -WakeOnLan:$true - StartConnected:$true -Connected:$true -Networ
kName 'VM Network'

Sets a network adapter with the specified parameters.

Copyright © 1998 - 2009 VMware, Inc. All rights reserved.