JSI Tip 10051. The Prncnfg.vbs, Prndrvr.vbs, Prnjobs.vbs, Prnmngr.vbs, Prnport.vbs, and Prnqctl.vbs commands.

Jerold Schulman

January 11, 2006

2 Min Read
ITPro Today logo in a gray background | ITPro Today


When you use the Windows XP CMD help., or Windows Server 2003 CMD help, you can view documentation on the Prncnfg.vbs, Prndrvr.vbs, Prnjobs.vbs, Prnmngr.vbs, Prnport.vbs, and Prnqctl.vbs commands.

NOTE: I have previously described the Prncnfg.vbs and Prnqctl.vbs commands.

COMMAND

D E S C R I P T I O N

Prncnfg.vbs

   Configures or displays configuration information about a printer.   Used without parameters, prncnfg.vbs displays command-line help for the prncnfg.vbs command.

Prndrvr.vbs

   Adds, deletes, and lists printer drivers.   Used without parameters, prndrvr.vbs displays command-line help for the prndrvr.vbs command.

Prnjobs.vbs

   Pauses, resumes, cancels, and lists print jobs.   Used without parameters, prnjobs.vbs displays command-line help for the prnjobs.vbs command.

Prnmngr.vbs

   Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer.   Used without parameters, prnmngr.vbs displays command-line help for the prnmngr.vbs command.

Prnport.vbs

   Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration.   Used without parameters, prnport.vbs displays help for the prnport.vbs command.

Prnqctl.vbs

   Prints a test page, pauses or resumes a printer, and clears a printer queue.   Used without parameters, prnqctl.vbs displays command-line help for the prnqctl.vbs command.

You can also get help at the command-line:

cscript //nologo %SYSTEMROOT%SYSTEM32prnqctl.vbs -?Usage: prnqctl [-zmex?] [-s server][-p printer][-u user name][-w password]Arguments:-e     - print test page-m     - resume the printer-p     - printer name-s     - server name-u     - user name-w     - password-x     - purge the printer (cancel all jobs)-z     - pause the printer-?     - display command usageExamples:prnqctl -e -s server -p printerprnqctl -m -p printerprnqctl -x -p printer

Example

cscript //nologo %SYSTEMROOT%SYSTEM32prnqctl.vbs -e -p "HP Officejet 6200 series"



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like