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
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- The sfc command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Reg command copy in Windowsto copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.
- The echo command in Windowsthe echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
- Xcopy command in Windowsthe xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
- The cacls command in Windowsthe cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.