CmdID / PowerShell / Cmdlets / Get
Get-VMSwitch
Gets virtual switches from one or more virtual Hyper-V hosts. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts from which virtual switches are to be retrieved.-CredentialSpecifies one or more user accounts that have permission to perform this action.-Id, -SwitchIdSpecifies the unique identifier of the virtual switch to be retrieved.-Name, -SwitchNameSpecifies the name of the virtual switch to be retrieved.-ResourcePoolNameSpecifies the resource pool from which the virtual switches are to be retrieved.-SwitchTypeSpecifies the type of the virtual switches to be retrieved.