The prnjobs command in Windows

(Applies to Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012)

The prnjobs command helps pause, resume, cancel and list jobs.

Syntax prnjobs command

 cscript Prnjobs {-z | -m | -x | -l | -?} [-s] 
[-p] [-j] [-u] [-w]

The prnjobs command parameter

Parameters

Describe

-z

Pause the print job (job) specified by the -j parameter.

-m

Continue the print job specified by the -j parameter.

-x

Cancel the print job specified by the -j parameter.

-l

Lists all print jobs in a print queue.

-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.

-j

Specify (by ID number) the print job you want to cancel.

-u -w

Specify an account that has the right to connect to the printer storage computer that you want to manage.These rights are granted to all members in the local administrator group of the target computer, but the permissions can also be granted to other users.If you do not specify a specific account, you must log in to an account provided with these permissions to execute the command.

/?

Show help at the command prompt.

Prnjobs command

The prnjobs command is a Visual Basic script located in the% WINdir% System32printing_Admin_Scripts directory.To use this command, at the command prompt, type cscript followed by the full path to the prnjobs file or change the directory to the appropriate directory.For example:

 cscript% WINdir% System32printing_Admin_Scriptsen-USprnjobs 

If the information you provide contains spaces, use quotation marks around that piece of information (for example, "Computer name").

Example of prnjobs command

To pause the print job with the command ID of 27 sent to the remote computer with the HRServer name to print on the printer named colorprinter , enter:

 cscript prnjobs -z -s HRServer -p colorprinter -j 27 

To list all the current print jobs in the local printer queue named colorprinter_2 , enter:

 cscript prnjobs -l -p colorprinter_2 

See more:

  1. The print command in Windows
  2. The net print command in Windows
  3. Netcfg command in Windows
  4. Nbtstat command in Windows
4 ★ | 6 Vote

May be interested

  • Instructions for using Command PromptInstructions for using Command Prompt
    deep 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 WindowsRd command in Windows
    the rd command helps delete a directory
  • Cmd command in WindowsCmd command in Windows
    the 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 PromptHow to use the command history function in Command Prompt
    command 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 WindowsThe 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 WindowsReg command copy in Windows
    to 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 WindowsFc command in Windows
    the fc command compares two files or a collection of files and displays the differences between them.
  • The echo command in WindowsThe echo command in Windows
    the 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 WindowsXcopy command in Windows
    the 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 in Windows
    the 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.