PowerShell Logo Small

Get-VMComPort



This is the built-in help made by Microsoft for the command 'Get-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

Gets the COM ports of a virtual machine or snapshot.

SYNTAX


Get-VMComPort [-VMName] <String[]> [[-Number] <Int32>] [-ComputerName <String[]>] [<CommonParameters>]
Get-VMComPort [-VM] <VirtualMachine[]> [[-Number] <Int32>] [<CommonParameters>]
Get-VMComPort [-VMSnapshot] <VMSnapshot> [[-Number] <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-VMComPort cmdlet gets the COM ports of a virtual machine or snapshot.



<

RELATED LINKS


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

REMARKS

<

Examples


Example 1

PS C:\>Get-VMComPort TestVM



Gets all COM ports associated with virtual machine TestVM.




Example 2

PS C:\>Get-VMComPort TestVM –Number 2



Gets the second COM port associated with virtual machine TestVM.