Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
cscript prnqctl -e -s Server1 -p Laserprinter1Prints a test page, pauses or resumes a printer, and clears a printer queue. This guide lists the documented syntax and parameters for prnqctl; check Microsoft Learn for version, role and execution-context requirements.
cscript Prnqctl {-z | -m | -e | -x | -?} [-s <Servername>] [-p <Printername>] [-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 prnqctl -e -s Server1 -p Laserprinter1Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
cscript prnqctl -z -p Laserprinter1Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
cscript prnqctl -x -p Laserprinter1| Option / clause | Description |
|---|---|
-z / -m | Pause or resume printing on the selected printer. |
-e | Print a test page. |
-x | Cancel all print jobs for the selected printer. |
-s <Servername> | Manage a printer on a remote computer; omit to use the local computer. |
-p <Printername> | Select the printer; required for the documented operations. |
-u <Username> -w <password> | Provide credentials authorized to manage the target computer. 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.