May 31st, 2013

PowerTip: Use PowerShell to List Hyper-V Switches

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to list all switches on a Hyper-V server.

Hey, Scripting Guy! Question How do I get a list of all switches on my Hyper-V box?

Hey, Scripting Guy! Answer Use the Get-VMSwitch cmdlet, which will list all Hyper-V network names on a host (including their switch type, whether they be External, Internal, or Private):

GET-VMSwitch 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.