Home > Commands N-Z > Commands P

PRNJOBS


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Pauses, resumes, cancels, and lists print jobs.


Syntax

CSCRIPT PRNJOBS[.VBS] /?

CSCRIPT PRNJOBS[.VBS] -z -j job_number -p printer_name [-s [remote_computer]] [-u user_name -w password]

CSCRIPT PRNJOBS[.VBS] -m -j job_number -p printer_name [-s [remote_computer]] [-u user_name -w password]

CSCRIPT PRNJOBS[.VBS] -x -j job_number -p printer_name [-s [remote_computer]] [-u user_name -w password]

CSCRIPT PRNJOBS[.VBS] -l [-p printer_name] [-s [remote_computer]] [-u user_name -w password]

Displays command-line help:

CSCRIPT PRNJOBS[.VBS]


Parameters

none.


Switches
/? (NTXP)
Displays help.
-j job_number (NTXP)
Specifies, by ID number, the print job you want to cancel/pause/resume.
-l (NTXP)
Specifies that you want to list all the print jobs in a print queue.
-m (NTXP)
Specifies that you want to resume a print job.
-p printer_name (NTXP)
Specifies, by name, the printer that would print the job you want to cancel/list/pause/resume.
-s [remote_computer] (NTXP)
Specifies, by name, the remote computer to which the print job you want to cancel/list/pause/resume was sent. If you do not specify a computer, the local computer is used.
-u user_name -w password (NTXP)
Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer to which the print job you want to cancel/list/pause/resume was sent. All members of the Administrators group for that computer 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.
-x (NTXP)
Specifies that you want to cancel a print job.
-z (NTXP)
Specifies that you want to pause a print job.

Related

none.


Notes

none.


Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NTXP NT2003

Last Updated: 2003/07/28
Direct corrections or suggestions to: Rick Lively