2

Is there a way to display the full settings of a specific Hyper-V vSwitch using Powershell? I'm trying to configure port-mirroring from the vSwitch to the Destination vNIC on a VM and so I've set the vSwitch as the mirror Source but I want to be able to check that the setting has been applied.

OS is Windows Server 2012 R2

Thanks

2
  • 1
    For future uses of powershell, check this command: Get-Command | Where-Object {$_.Source -eq 'Hyper-V'}, this will list you all commands related to source Hyper-V (and you can, of course, change Hyper-V to whatever you like to know) – Lenniey Sep 8 '17 at 12:32
  • @Lenniey You can even avoid the UUoP Get-Command -Module 'Hyper-V'. – jscott Sep 9 '17 at 11:12
2

This should be what you need:

get-vmswitch | select *
2
  • Thanks. That is pretty useful but it doesn't give me exactly what I need. I want to find out if a vSwitch is configured as a port mirroring source or not. – takesides Sep 8 '17 at 16:30
  • This post has some info about port mirroring and PowerShell. I don't have anything like this set up, so I can't give you anything specific. – Mike Shepard Sep 8 '17 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.