PowerShell Logo Small

Add-PrinterPort



This is the built-in help made by Microsoft for the command 'Add-PrinterPort', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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

Installs a printer port on the specified computer.

SYNTAX


Add-PrinterPort [-Name] <String> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-ComputerName <String>] [-ThrottleLimit <Int32>]
[-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Add-PrinterPort [-Name] <String> [-LprHostAddress] <String> [-LprQueueName] <String> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>]
[-ComputerName <String>] [-LprByteCounting [<SwitchParameter>]] [-SNMP <UInt32>] [-SNMPCommunity <String>] [-ThrottleLimit <Int32>] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Add-PrinterPort [-Name] <String> [-PrinterHostAddress] <String> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-ComputerName
<String>] [-PortNumber <UInt32>] [-SNMP <UInt32>] [-SNMPCommunity <String>] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf
[<SwitchParameter>]] [<CommonParameters>]
Add-PrinterPort [-HostName] <String> [-PrinterName] <String> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession>] [-ComputerName <String>]
[-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Get-PrinterPort
Remove-PrinterPort

REMARKS

<

Examples


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.