PowerShell Logo Small

Set-VMComPort



This is the built-in help made by Microsoft for the command 'Set-VMComPort', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Configures the COM port of a virtual machine.

SYNTAX


Set-VMComPort [-VMName] <String[]> [-Number] <Int32> [-Path] <String> [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VMComPort [-VM] <VirtualMachine[]> [-Path] <String> [-Passthru] -Number <Int32> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VMComPort [-VMComPort] <VMComPort[]> [-Path] <String> [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-VMComPort cmdlet configures the COM port of a virtual machine.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306940

REMARKS

<

Examples


Example 1

PS C:\>Set-VMComPort TestVM 2 \\.\pipe\TestPipe



Configure the second COM port on virtual machine TestVM to connect to named pipe TestPipe on the local computer.