Pause, resume, cancel, or list print jobs.
Syntax cscript PRNJOBS.vbs [-options] [-s server] [-p printer] [-j jobid] [-u user_name] [-w password] Options -j Job ID -l List all jobs -p Printer Name -s Server Name -u User Name -w password -x Cancel the job -z Pause the job -? Display help
PrnJobs.vbs is not on the Windows PATH but will be found at:
%Windir%\System32\Printing_Admin_Scripts\locale\prnmngr.vbs
Set _scripts=cscript %Windir%\System32\Printing_Admin_Scripts\en-US
List all current print jobs in the queue for the local printer named ColorPrinter_2
%_scripts%\prnjobs.vbs -l -p ColorPrinter_2
Pause a print job with a job ID of 27 sent to the remote computer named prnserv64 for printing on the printer named Gareth
%_scripts%\prnjobs.vbs -z -s prnserv64 -p Gareth -j 27
“My father used to have an expression. He'd say, 'Joey, a job is about a lot more than a paycheck. It's about your dignity. It's about respect. It's about your place in your community'” ~ Joe Biden
NET VIEW \\Printserver - to view a list of available printers.
NET PRINT - View and Delete print jobs.
PRNCNFG - Configure a printer.
PRNDRVR - Add, delete or list printer drivers.
PRNMNGR - Add, delete or list printer drivers.
PRNPORT - Manage TCP/IP printer ports, change port configuration.
PRNQCTL - Manage printer queues, print a test page.
PRINT - Print a text file.
RUNDLL32 - Install/Remove Printers (plus advanced options).
WMIC PRINTER - Set printing options through WMI.
Q246868 - TCP/IP Printing options in the Windows Standard Port Monitor.
Add printer - .AddPrinterConnection
Add Network printer - .AddWindowsPrinterConnection
List printers - .EnumPrinterConnections
Set default printer - .SetDefaultPrinter
Equivalent bash command (Linux): lpc - Line printer control program.