Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
cscript prnjobs.vbs -z -s HRServer -p colorprinter -j 27Pauses, resumes, cancels, and lists print jobs. This guide lists the documented syntax and parameters for prnjobs; check Microsoft Learn for version, role and execution-context requirements.
cscript prnjobs {-z | -m | -x | -l | -?} [-s <Servername>] [-p <Printername>] [-j <JobID>] [-u <Username>] [-w <password>]The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
cscript prnjobs.vbs -z -s HRServer -p colorprinter -j 27Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
cscript prnjobs.vbs -l -p colorprinter_2| Option / clause | Description |
|---|---|
-z / -m / -x | Pause, resume or cancel the print job selected by -j. |
-l | List jobs in a print queue. |
-s <Servername> | Manage a printer on a remote computer; omit to use the local computer. |
-p <Printername> | Select the printer queue; required by the documented operation. |
-j <JobID> | Select a print job by its numeric job ID. |
-u <Username> -w <password> | Provide credentials authorized to manage the print server. Avoid exposing passwords in shell history. |
-? | Display command help. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.