Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

The Prnjobs Command in Windows: A Practical Guide

Understand The Prnjobs Command in Windows with clear explanations, practical examples, and useful tips. This updated guide covers the essential concepts and...

Table of Contents

The Prnjobs Command in Windows is easier to understand when the core ideas are paired with practical examples. The sections below explain the topic clearly, highlight useful steps, and point out details that can prevent common errors.

(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 instance,:

 cscript% WINdir% System32printing_Admin_Scriptsen-USprnjobs 

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

Example of prnjobs command

  • The print command in Windows
  • The net print command in Windows
  • Netcfg command in Windows
  • Nbtstat command in Windows

FAQ

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

Why is The Prnjobs Command in Windows important?

A clear understanding of The Prnjobs Command in Windows helps you make informed decisions, avoid common mistakes, and use the relevant tools or techniques more effectively.

How should beginners approach The Prnjobs Command in Windows?

Start with the fundamental concepts, follow the examples step by step, and test each change in a safe environment before applying it to important systems or data.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.