Powershell – Display Hyper-V vSwitch configuration in Powershell

hyper-vpowershellvirtual-machinesvswitchwindows-server-2012-r2

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

Best Answer

This should be what you need:

get-vmswitch | select *