Prnqctl command in Windows
(Applies to Windows Server (Semi-Annual Channel), Windows Server 2016 , Windows Server 2012 R2, Windows Server 2012 )
Theprnqctlcommandhelps print a test page, pause or resume the printer and delete the printer queue.
Syntax command prnqctl
cscript Prnqctl {-z | -m | -e | -x | -?} [-s]
[-p] [-u] [-w]
The command parameter prnqctl
Parameters
Describe
-z
Pause printing on the printer specified with the -p parameter.
-m
Continue printing on the printer specified with the -p parameter.
-e
Print a test page on the printer specified with the -p parameter.
-x
Cancel all print jobs on the printer specified with the -p parameter.
-S
Specify the name of the remote computer that the printer store you want to manage.If you do not specify a remote computer, the local computer will be used by default.
-p
Required parameters.Specify the name of the printer you want to manage.
-u -w
Specify the authorized account to connect to the printer storage computer you want to manage.All members in the local administrator group of the target computer have these rights, but the permissions can also be granted to other users.If you do not specify an account, you must log in to an account with these permissions so that the command can be executed.
/?
Show help at thecommand prompt.
Prnqctl command statement
The prnqctl command is a Visual Basic script located in the% WINdir% System32printing_Admin_Scripts directory . To use this command, at the command prompt, type cscriptfollowed by the full path to the prnqctl file, or change the directory to the appropriate directory.
For example:
cscript% WINdir% System32printing_Admin_Scriptsen-USprnport
If the information you provide contains spaces, use quotation marks for the text (for example, "computer Name").
Example prnqctl command
To print a test page on a printer called Laserprinter1 that is shared by the server named Server1 , enter:
cscript Prnqctl -e -s Server1 -p Laserprinter1
To pause printing on a printer named Laserprinter1 on a local computer, type:
cscript Prnqctl -z -p Laserprinter1
To cancel all print jobs on a printer named Laserprinter1 on the local computer, type:
cscript Prnqctl -x -p Laserprinter1
See more:
- Prnport command in Windows
- Prnmngr command in Windows
- The prnjobs command in Windows
- Prndrvr command in Windows
You should read it
May be interested
- Pentnt command in Windows(applies to: windows server 2003, windows server 2003 r2, windows server 2003 with sp1, windows server 2003 with sp2).
- The chcp command in Windowsthe chcp command changes the active code page console. if used without parameters, the chcp command will show the number of active page code of the control panel.
- Order bitsadmin getnotifycmdline, getnotifyflags, getnotifyinterfacetoday's article will introduce 3 commands: bitsadmin getnotifycmdline, bitsadmin getnotifyflags and bitsadmin getnotifyinterface in windows.
- What file is PPTX? How to open, edit and convert PPTX filesfiles with extensions .pptx are microsoft powerpoint open xml presentation files. these files are used to store presentations on microsoft powerpoint.
- Popd and pushd commands in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012).
- The chkntfs command in Windowsthe chkntfs command displays or modifies the automatic disk check when the computer starts. if used without options, the chkntfs command will display the file system of the specified drive.