This is the built-in help made by Microsoft for the command 'Add-PrinterPort', 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.
Installs a printer port on the specified computer.
Add-PrinterPort [-Name] <String> [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-PrinterPort [-Name] <String> [-PrinterHostAddress] <String> [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-PortNumber <UInt32>] [-SNMP <UInt32>]
[-SNMPCommunity <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-PrinterPort [-HostName] <String> [-PrinterName] <String> [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf]
[<CommonParameters>]
Add-PrinterPort [-Name] <String> [-LprHostAddress] <String> [-LprQueueName] <String> [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-LprByteCounting] [-SNMP
<UInt32>] [-SNMPCommunity <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
The Add-PrinterPort cmdlet creates a new printer port on the specified computer. You can create a local printer port, a printer port using TCP, and LPR printer ports by
using Add-PrinterPort cmdlet.
You cannot use wildcard characters with Add-PrinterPort. You can use Add-PrinterPort in a Windows PowerShell remoting session.
You do not need administrator privileges to use Add-PrinterPort.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=289209
Get-PrinterPort
Remove-PrinterPort
<
Example 1: Create a local printer port
PS C:\> Add-PrinterPort -Name "LocalPort:"
This command creates a local printer port named LocalPort on the local computer.
Example 2: Create a TCP printer port
PS C:\> Add-PrinterPort -Name "TCPPort:" -PrinterHostAddress "192.168.100.100"
This command creates a TCP printer port named TCPPort: with an IP address of 192.168.100.100 on the computer.