Add VM Network Adapter
This Automation Manager object adds a virtual network adapter to a virtual machine.
Input Parameters
Virtual Machine Name |
String |
Yes |
Specifies the virtual machine on which the network adapter is to be added. |
Virtual Switch Name |
String |
Yes |
Specifies the name of the virtual switch to connect to the new network adapter. If the switch name is not unique, then the operation fails. |
Virtual NIC Name |
String |
Yes |
Specifies a name for the new virtual network adapter. The default value is . |
Is Legacy |
Boolean |
Yes |
Specifies if the virtual network adapter is the legacy type. |
Output Parameters
Result |
Number |
Returns a success value of zero or any value other than zero to indicate failure. |
Example Input Parameters
Virtual Machine Name |
String |
Yes |
Guest001 |
Virtual Switch Name |
String |
Yes |
Network_Switch |
Virtual NIC Name |
String |
No |
Secondary |