PowerTip: Use PowerShell to List Hyper-V Switches

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