Home > Commands N-Z > Commands P

PRNPORT


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration.


Syntax

CSCRIPT PRNPORT[.VBS] /?

CSCRIPT PRNPORT[.VBS] -a -h ip_address [-i index_name] [-m{e | d}] [-o {raw -n port_number | lpr}] [-q queue_name] -r port_name [-s [remote_computer]] [-u user_name -w password] [-y community_name] [-2{e | d}]

CSCRIPT PRNPORT[.VBS] -d -r port_name [-s [remote_computer]] [-u user_name -w password]

CSCRIPT PRNPORT[.VBS] -l [-s [remote_computer]] [-u user_name -w password]

CSCRIPT PRNPORT[.VBS] -g -r port_name [-s [remote_computer]] [-u user_name -w password]

CSCRIPT PRNPORT[.VBS] -t -h ip_address [-i index_name] [-m{e | d}] [-o {raw -n port_number | lpr}] [-q queue_name] -r port_name [-s [remote_computer]] [-u user_name -w password] [-y community_name] [-2{e | d}]

Displays command-line help:

CSCRIPT PRNPORT[.VBS]


Parameters

none.


Switches
/? (NTXP)
Displays help.
-2{e | d} (NTXP)
Specifies whether double spools (also known as respooling) are enabled for TCP LPR ports. Double spools are necessary because TCP LPR must include an accurate byte count in the control file that is sent to the printer, but the protocol cannot get the count from the local print provider. Therefore, when a file is spooled to a TCP LPR print queue, it is also spooled as a temporary file in the system32 directory. TCP LPR determines the size of the temporary file and sends the size to the server running LPD.
-a (NTXP)
Specifies that you want to create a standard TCP/IP printer port.
-d (NTXP)
Specifies that you want to delete a standard TCP/IP printer port.
-g (NTXP)
Specifies that you want to display the configuration of a standard TCP/IP printer port.
-h ip_address (NTXP)
Specifies the IP address you want to assign to the port.
-i index_name (NTXP)
Specifies the SNMP index, if SNMP is enabled.
-l (NTXP)
Specifies that you want to list all standard TCP/IP printer ports on a computer.
-m{e | d} (NTXP)
Specifies whether SNMP is enabled.
-o {raw -n port_number | lpr} (NTXP)
Specifies which protocol the port uses: TCP raw or TCP LPR. If you use TCP raw, specifies the port number for a TCP raw printer port. By default, this is port number 9100. Most printers use TCP raw. On UNIX networks, printers often use TCP LPR.
-q queue_name (NTXP)
Specifies the queue name for a TCP raw port.
-r port_name (NTXP)
Specifies the port to which the printer is configured/connected/deleted.
-s [remote_computer] (NTXP)
Specifies, by name, the remote computer to which you want to add/configure/delete/list the port. If you do not specify a computer, the port is added to the local computer.
-t (NTXP)
Specifies that you want to configure a standard TCP/IP printer port.
-u user_name -w password (NTXP)
Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer on which you want to configure/create/delete/list a standard TCP/IP printer port. All members of the Administrators group for that computer have these permissions, but the permissions can also be granted to other users. If you do not specify an account, you must be logged on under an account with these permissions for the command to work.
-y community_name (NTXP)
Specifies the SNMP community name, if SNMP is enabled.

Related

none.


Notes

none.


Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NTXP NT2003