Prnport.vbs Command In Windows Server 2008
This article shows how to use Prnport.vbs command in Windows Server 2008 operating system.
Introduction
Prnport.vbs command in Windows Server 2008 is used to creates, deletes and lists TCP/IP printer ports and it it also used to displaying and changing port configuration. Syntax used for Prnport.vbs command is given below.
Syntax
Cscript prnport {-a | -d | -l | -g | -t | -?} [-r <PortName>] [-s <ServerName>] [-u <UserName>] [-w <Password>] [-o {raw | lpr}] [-h <HostAddress>] [-q <QueueName>] [-n <PortNumber>] -m {e | d} [-i <SNMPIndex>] [-y <CommunityName>] -2 {e | d}
|
Parameters For Prnport.vbs
Parameter |
Description |
-a |
Creates a standard TCP/IP printer port. |
-d |
Deletes a standard TCP/IP printer port. |
-l |
Lists all standard TCP/IP printer ports on the computer specified with the -s parameter. |
-g |
Shows the configuration of a standard TCP/IP printer port. |
-t |
Configures the port settings for a standard TCP/IP printer port. |
-r <PortName> |
Defines the port to which the printer is connected. |
-s <ServerName> |
Defines the name of the remote computer that hosts the printer that you want to manage. |
-u <UserName> -w <Password> |
Defines an account with permissions to connect to the computer that hosts the printer that you want to manage. |
-o {raw | lpr} |
Defines which protocol the port uses: TCP raw or TCP LPR. |
-h <HostAddress> |
Defines the printer for which you want to configure the port. |
-q <QueueName> |
Defines the queue name for a TCP raw port. |
-n <PortNumber> |
Defines the port number for a TCP raw port. |
-m{e | d} |
Defines whether SNMP is enabled. |
-i <SNMPIndex |
Defines the SNMP index, if SNMP is enabled. |
-y <CommunityName> |
Defines the SNMP community name, if SNMP is enabled. |
-2{e | -d} |
Defines whether double spools are enabled for TCP LPR ports. |
/? |
Shows help at the command prompt. |
Got a programming related question? You may want to post your question here