Information Technology Reference
In-Depth Information
Solution
Using a Graphical User Interface
1.
Open the Printers and Faxes administrative window.
2.
Right-click the name of the printer that you want to manage and select one of the
following:
￿ To temporarily hold on documents in queue (pause the printer), select Pause Printing.
￿ To resume printing, select Resume Printing.
￿ To delete all documents in the queue, select Cancel All Documents.
Using VBScript
You can pause, resume, or clear a printer queue in VBScript by invoking the prnqctl.vbs script,
located in the %systemroot%\system32 directory. Use the script with the following parameters:
> cscript prnqctl.vbs {-z | -m | -x} [-s <RemoteComputer> ]
-p < PrinterName > [-u < UserName > -w < Password >]
Here is a description of the parameters:
-z | -m | -x : Required parameter that specifies the action that you want to take. The -z
parameter pauses the printer; the -m parameter resumes printing; and the -x parameter
deletes all jobs from the queue.
-s RemoteComputer : Optional parameter that specifies the name of the server whose printer
you want to manage. If omitted, the local server will be assumed. Enclose the server name
in quotation marks.
-p PrinterName : Required parameter that specifies the name of the printer on which you
want to take action. Enclose the printer name in quotation marks.
-u UserName -w Password : Optional parameters that provide the credentials needed to take
the action on the desired host. Enclose both the username and the password in quotation
marks.
For example, to pause printing on the HP LaserJet 1300 hosted on PrintServer3, run the
following command:
> cscript prnqctl.vbs -z -s "PrintServer3" -p "HP LaserJet 1300"
How It Works
You may want to pause or clear printer queues for various reasons. For example, a user might
decide that a document should not have been sent to the printer (perhaps it was too large), or
the print device may be having hardware issues that need to be addressed.
To manage the queue on remote systems, it is necessary that you have the appropriate
access rights on that system.
Search WWH ::




Custom Search