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) Commented Sep 8, 2017 at 12:32
  • @Lenniey You can even avoid the UUoP Get-Command -Module 'Hyper-V'. Commented Sep 9, 2017 at 11:12

1 Answer 1

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. Commented Sep 8, 2017 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. Commented Sep 8, 2017 at 20:05

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.