CmdID / PowerShell / Cmdlets / Get
Get-NetworkSwitchEthernetPort
Gets port information for a network switch. Windows Server PowerShell reference
From the Windows Server PowerShell reference 5 parameters Its page in the reference
Parameters
-CimSessionSpecifies the CimSession that this cmdlet uses to connect to the network switch.-DeviceIdSpecifies a device ID.-FullDuplexDisabledIndicates that this cmdlet returns only ports that have FullDuplex disabled.-FullDuplexEnabledIndicates that this cmdlet returns only ports that have FullDuplex enabled.-PortNumberSpecifies a port number.