PowerTip: Use PowerShell to List Hyper-V Switches

Doctor Scripto

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 

0 comments

Discussion is closed.

Feedback usabilla icon