prnqctl.vbs

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

Hashes

Type Hash
MD5 3174AA250852ED50AC058E83A06482D0
SHA1 7AFACC27309015D38E6CC120D7218F7977B14D90
SHA256 8889636888B8B053C19784622B339E4A11DDC623394B1482040F6BB2E103F999
SHA384 F1326B05B42023DBD449E865354F67ACF96B0254441C59992D1DE178A3E196769A2F77C8424CC6E5BB75D631E4CE4FE7
SHA512 4B04B37E322D53730F0A7E106E5572981FE6C189BB0EADAA99C35852A3E2F971DF4EDC7805F59638E25D3A48C643D3659EDEDB02A33B9449403615985F0FAADB
SSDEEP 768:ciYFirBOZAZWXe6buhoBDNSib1kCshJ8mgB:BKirBJZWXbbu691znB
PESHA1 7AFACC27309015D38E6CC120D7218F7977B14D90
PE256 8889636888B8B053C19784622B339E4A11DDC623394B1482040F6BB2E103F999

Runtime Data

Usage (stdout):

Usage: prnqctl [-zmex?] [-s server][-p printer][-u user name][-w password]

Arguments:
-e     - print test page
-m     - resume the printer
-p     - printer name
-s     - server name
-u     - user name
-w     - password
-x     - purge the printer (cancel all jobs)
-z     - pause the printer
-?     - display command usage

Examples:
prnqctl -e -s server -p printer
prnqctl -m -p printer
prnqctl -x -p printer

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/8889636888b8b053c19784622b339e4a11ddc623394b1482040f6bb2e103f999/detection

File Similarity (ssdeep match)

File Score
C:\Windows\system32\Printing_Admin_Scripts\en-US\prnport.vbs 36
C:\Windows\system32\Printing_Admin_Scripts\en-US\prnqctl.vbs 65
C:\Windows\system32\Printing_Admin_Scripts\en-US\pubprn.vbs 40
C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prnport.vbs 41
C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\pubprn.vbs 38

Additional Info*

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


prnqctl

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

Prints a test page, pauses or resumes a printer, and clears a printer queue. 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 prnqctl file, or change directories to the appropriate folder. For example: cscript %WINdir%\System32\printing_Admin_Scripts\en-US\prnqctl.

Syntax

cscript Prnqctl {-z | -m | -e | -x | -?} [-s <Servername>] [-p <Printername>] [-u <Username>] [-w <password>]

Parameters

Parameter Description
-z Pauses printing on the printer specified by the -p parameter.
-m Resumes printing on the printer specified by the -p parameter.
-e Prints a test page on the printer specified by the -p parameter.
-x Cancels all print jobs on the printer specified by the -p parameter.
-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.
-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 print a test page on the Laserprinter1 printer shared by the \Server1 computer, type:

cscript prnqctl -e -s Server1 -p Laserprinter1

To pause printing on the Laserprinter1 printer on the local computer, type:

cscript prnqctl -z -p Laserprinter1

To cancel all print jobs on the Laserprinter1 printer on the local computer, type:

cscript prnqctl -x -p Laserprinter1

Additional References


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