Updated: April 17, 2012
Applies To: Windows Vista, Windows Server 2008, Windows Server 2012, Windows 8
Prints a test page, pauses or resumes a printer, and clears a printer queue.
For examples of how this command can be used, see Examples.
Pauses printing on the printer specified with the -p parameter.
Resumes printing on the printer specified with the -p parameter.
Prints a test page on the printer specified with the -p parameter.
Cancels all print jobs on the printer specified with the -p parameter.
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.
Specifies the name of the printer that you want to manage. Required.
-u <UserName> -w <Password>
Specifies an account with permissions to connect to the computer that hosts the printer that you want to manage. All members of the target computer's local Administrators group 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.
Displays help at the command prompt.
The Prnqctl.vbs command is a Visual Basic script located in the %WINDIR%\System32\Printing_Admin_Scripts\<language> directory. To use this command, at a command prompt, type Cscript followed by the full path to the Prnqctl.vbs file, or change directories to the appropriate folder. For example:
If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name").
To print a test page on the LaserPrinter1 printer shared by the \\Server1 computer, type:
Cscript Prnqctl -e -s Server1 -p LaserPrinter1
To pause printing on the LaserPrinter1 printer on the local computer, type:
Cscript Prnqctl -z -p LaserPrinter1
To cancel all print jobs on the LaserPrinter1 printer on the local computer, type:
Cscript Prnqctl -x -p LaserPrinter1