CmdID

CmdID / PowerShell / Cmdlets / Get

Get-VMComPort

Gets the COM ports of a virtual machine or snapshot. Windows Server PowerShell reference

From the Windows Server PowerShell reference 7 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

7 in the Windows Server PowerShell reference
-CimSessionRuns the cmdlet in a remote session or on a remote computer.
-ComputerNameSpecifies one or more Hyper-V hosts on which the COM ports of a virtual machine or snapshot are to be retrieved.
-CredentialSpecifies one or more user accounts that have permission to perform this action.
-NumberSpecifies the Id (1 or 2) of the COM ports to be retrieved.
-VMSpecifies the virtual machine whose COM ports are to be retrieved.
-VMNameSpecifies the name of the virtual machine whose COM ports are to be retrieved.
-VMSnapshot, -VMCheckpointSpecifies the snapshot whose COM ports are to be retrieved.