Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Add Adapter to a Virtual Machine

$
0
0

Summary: Use Windows PowerShell to add a network adapter to a virtual machine.

Hey, Scripting Guy! Question How do I add a network adapter to my virtual machine on Hyper-V?

Hey, Scripting Guy! Answer Use the ADD-VMNetworkAdapter cmdlet:

ADD-VMNetworkAdapter -vmname "My Virtual Machine" -switchname "ProdVlan"

Remember, you can always get a list of Hyper-V networks with Get-VMSwitch.


Viewing all articles
Browse latest Browse all 3333

Trending Articles