prnjobs.vbs

  • File Path: C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prnjobs.vbs

Hashes

Type Hash
MD5 16EF15265C4D06DAAA4F0BEA9AC9F11B
SHA1 49980F275A0887E808F1C6FE957434C80D32BD83
SHA256 F2AECAB9965B812E1F49A67E93BA0586CC4AB615FCB307BF2ACA54FB369D91C4
SHA384 8F06423595440BD08829F41D196F8B9856AFBF3444A8A9E8C9507704500589B4688BEC3281875819C3D67944901B743D
SHA512 5DEBC61DF9FD57CBC6E2223DD78942197E0FAFB7FBA8F27F5CBE8B4339848A7C4F0FCEA70BE9E54A174F3D33AF2A1EAF85C976C4A17A0290F62AE675462A5DE0
SSDEEP 1536:+o125FjaXGxbMN75ro6BHB1ZrXbbu6OWV:L6Qm0V
PESHA1 49980F275A0887E808F1C6FE957434C80D32BD83
PE256 F2AECAB9965B812E1F49A67E93BA0586CC4AB615FCB307BF2ACA54FB369D91C4

Runtime Data

Usage (stdout):

Usage: prnjobs [-zmxl?] [-s server][-p printer][-j jobid][-u user name][-w password]

Arguments:
-j     - job id
-l     - list all jobs
-m     - resume the job
-p     - printer name
-s     - server name
-u     - user name
-w     - password
-x     - cancel the job
-z     - pause the job
-?     - display command usage

Examples:
prnjobs -z -p printer -j jobid
prnjobs -l -p printer
prnjobs -l

Loaded Modules:

Path
C:\Windows\SYSTEM32\cscript.exe
C:\Windows\System32\KERNEL32.DLL
C:\Windows\System32\KERNELBASE.dll
C:\Windows\SYSTEM32\ntdll.dll

Signature

  • Status: Signature verified.
  • Serial: 3300000266BD1580EFA75CD6D3000000000266
  • Thumbprint: A4341B9FD50FB9964283220A36A1EF6F6FAA7840
  • Issuer: CN=Microsoft Windows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  • Subject: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

File Metadata

  • Original Filename:
  • Product Name:
  • Company Name:
  • File Version:
  • Product Version:
  • Language:
  • Legal Copyright:

File Scan

  • VirusTotal Detections: 0/75
  • VirusTotal Link: https://www.virustotal.com/gui/file/f2aecab9965b812e1f49a67e93ba0586cc4ab615fcb307bf2aca54fb369d91c4/detection

File Similarity (ssdeep match)

File Score
C:\Windows\system32\Printing_Admin_Scripts\en-US\prnjobs.vbs 85
C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prnport.vbs 29

Additional Info*

*The information below is copied from MicrosoftDocs, which is maintained by Microsoft. Available under CC BY 4.0 license.


prnjobs

Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Pauses, resumes, cancels, and lists print jobs. This command is a Visual Basic script located in the %WINdir%\System32\printing_Admin_Scripts\<language> directory. To use this command at a command prompt, type cscript followed by the full path to the prnjobs file, or change directories to the appropriate folder. For example: cscript %WINdir%\System32\printing_Admin_Scripts\en-US\prnjobs.vbs.

Syntax

cscript prnjobs {-z | -m | -x | -l | -?} [-s <Servername>] [-p <Printername>] [-j <JobID>] [-u <Username>] [-w <password>]

Parameters

Parameter Description
-z Pauses the print job specified by the -j parameter.
-m Resumes the print job specified by the -j parameter.
-x Cancels the print job specified by the -j parameter.
-l Lists all the print jobs in a print queue.
-s <Servername> Specifies the name of the remote computer that hosts the printer that you want to manage. If you don’t specify a computer, the local computer is used.
-p <Printername> Required. Specifies the name of the printer that you want to manage.
-j <JobID> Specifies (by ID number) the print job you want to cancel.
-u <Username> -w <password> Specifies an account with permissions to connect to the computer that hosts the printer that you want to manage. All members of the target computer’s local Administrators group have these permissions, but the permissions can also be granted to other users. If you don’t specify an account, you must be logged on under an account with these permissions for the command to work.
/? Displays help at the command prompt.
Remarks
  • If the information that you supply contains spaces, use quotation marks around the text (for example, “Computer Name”).

Examples

To pause a print job with a job ID of 27 sent to the remote computer named HRServer for printing on the printer named colorprinter, type:

cscript prnjobs.vbs -z -s HRServer -p colorprinter -j 27

To list all current print jobs in the queue for the local printer named colorprinter_2, type:

cscript prnjobs.vbs -l -p colorprinter_2

Additional References


MIT License. Copyright (c) 2020-2021 Strontic.