Log in Register

Log in

Prnport.vbs command - switches, options, syntax and examples

Prnport.vbs command - switches, options, syntax and examples Hot

 
0.0 (0)
1212   0   0   0   0  
Write Review

Use of Prnport.vbs command:

Prnport.vbs command used to Creates, deletes, and lists standard TCP/IP printer ports,

 

Prnport.vbs command syntax:

Cscript prnport {-a | -d | -l | -g | -t | -?} [-r ] [-s ] [-u ] [-w ] [-o {raw | lpr}] [-h ] [-q ] [-n ] -m{e | d} [-i ] [-y ] -2{e | -d}

 

Prnport.vbs command switches:

-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 : Displays the configuration of a standard TCP/IP printer port.

-t : Configures the port settings for a standard TCP/IP printer port.

-r : Specifies the port to which the printer is connected.

-s : Specifies the name of the remote computer that hosts the printer that you want to manage. If you do not specify a computer, the local computer is used.

-u -w : Specifies an account with permissions to connect to the computer that hosts the printer that you want to manage. 

-o {raw | lpr} : Specifies which protocol the port uses: TCP raw or TCP LPR. If you use TCP raw, you can optionally specify the port number by using the -n parameter. 

-h : Specifies (by IP address) the printer for which you want to configure the port.

-q  : Specifies the queue name for a TCP raw port.

-n : Specifies the port number for a TCP raw port. The default port number is 9100.

-m{e | d} : Specifies whether SNMP is enabled. The parameter e enables SNMP. The parameter d disables SNMP.

-i

-y : Specifies the SNMP community name, if SNMP is enabled.

-2{e | -d} ; Specifies whether double spools (also known as respooling) are enabled for TCP LPR ports. 

/? : Displays help at the command prompt.

 

Prnport.vbs command examples:

To display all standard TCP/IP printing ports on the server Server1, type:

Cscript Prnport.vbs -l -s Server1

To delete the standard TCP/IP printing port on the server Server1 that connects to a network printer at 10.2.3.4, type:

Cscript Prnport.vbs -d -s Server1 -r IP_10.2.3.4

 

User reviews

There are no user reviews for this listing.
Already have an account? or Create an account