Prnqctl.vbsPrints a test page, pauses or resumes a printer, and clears a printer queue. Used without parameters, prnqctl.vbs displays command-line help for the prnqctl.vbs command. To pause printing Syntaxcscript prnqctl.vbs -z [-s RemoteComputer] -p PrinterName [-u UserName -w Password] Parameters-z : Required. Specifies that you want to pause printing. -s RemoteComputer : Specifies, by name, the remote computer to which the printer you want to pause is attached. If you do not specify a computer, the printer attached to the local computer is paused. -p PrinterName : Required. Specifies, by name, the printer you want to pause. -u UserName -w Password : Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer that hosts the printer on which you want to pause printing. All members of the Administrators group for that computer have these permissions, but the permissions can also be granted to other users. If you do not specify an account, you must be logged on under an account with these permissions for the command to work. For more information about WMI, see Related Topics. /?: Displays help at the command prompt. Remarks
ExampleTo pause all printing on the printer named ColorPrinter_2 hosted on the remote computer named HRServer, type: cscript prnqctl.vbs -z -s HRServer -p ColorPrinter_2 To resume printing Syntaxcscript prnqctl.vbs -m [-s RemoteComputer] -p PrinterName [-u UserName -w Password] Parameters-m : Required. Specifies that you want to resume printing. -s RemoteComputer : Specifies, by name, the remote computer to which the printer you want to resume is attached. If you do not specify a computer, the printer attached to the local computer is resumed. -p PrinterName : Required. Specifies, by name, the printer on which you want to resume printing. -u UserName -w Password : Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer that manages the printer on which you want to resume printing. All members of the Administrators group for that computer have these permissions, but the permissions can also be granted to other users. If you do not specify an account, you must be logged on under an account with these permissions for the command to work. For more information about WMI, see Related Topics. /?: Displays help at the command prompt. Remarks
ExampleTo resume all printing on the printer named ColorPrinter_2 hosted on the remote computer named HRServer, type: cscript prnqctl.vbs -m -s HRServer -p ColorPrinter_2 To print a test page Syntaxcscript prnqctl.vbs -e [-s RemoteComputer] -p PrinterName [-u UserName -w Password] Parameters-e : Required. Specifies that you want to print a test page. -s RemoteComputer : Specifies, by name, the remote computer to which the printer on which you want to print a test page is attached. If you do not specify a computer, the local computer is used. -p PrinterName : Required. Specifies, by name, the printer on which you want to print a test page. -u UserName -w Password : Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer that manages the printer on which you want to print a test page. All members of the Administrators group for that computer have these permissions, but the permissions can also be granted to other users. If you do not specify an account, you must be logged on under an account with these permissions for the command to work. For more information about WMI, see Related Topics. /?: Displays help at the command prompt. Remarks
To cancel all jobs spooled to a printer Syntaxcscript prnqctl.vbs -x [-s RemoteComputer] -p PrinterName [-u UserName -w Password] Parameters-x : Required. Specifies that you want to cancel all jobs spooled to a printer. -s RemoteComputer : Specifies, by name, the remote computer to which the printer for which you want to cancel all jobs is attached. If you do not specify a computer, the local computer is used. -p PrinterName : Required. Specifies, by name, the printer for which you want to cancel all print jobs. -u UserName -w Password : Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer on which you want to cancel all print jobs. All members of the Administrators group for that computer have these permissions, but the permissions can also be granted to other users. If you do not specify an account, you must be logged on under an account with these permissions for the command to work. For more information about WMI, see Related Topics. /?: Displays help at the command prompt. Remarks
Formatting legend
Using the command-based script host (CScript.exe) |