CmdID / PowerShell / Cmdlets / Set
Set-VMComPort
Configures the COM port of a virtual machine. Windows Server PowerShell reference
From the Windows Server PowerShell reference 12 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 on which the COM port of a virtual machine is to be configured.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-DebuggerModeSpecifies the state of the COM port for use by debuggers.-NumberSpecifies the Id (1 or 2) of the COM port to be configured.-PassthruSpecifies that a Microsoft.HyperV.PowerShell.ComPort object is to be passed through to the pipeline representing the COM port to be configured.-PathSpecifies a named pipe path for the COM port to be configured.-VMSpecifies the virtual machine for which the COM port is to be configured.-VMComPortSpecifies the COM port to be configured.-VMNameSpecifies the name of the virtual machine for which the COM port is to be configured.-WhatIf, -wiShows what would happen if the cmdlet runs.