Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

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 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>