PowerTip: Use PowerShell to List Hyper-V Switches

PowerTip: Use PowerShell to List Hyper-V Switches

  • Comments 1
  • Likes

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 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • How would you go about listing the VMSwitch for each individual VM?