Exportovat (0) Tisk
Rozbalit vše
Arp
At
Cd
Cls
Cmd
Del
Dir
Fc
For
Ftp
If
Ldp
Lpq
Lpr
Md
Mmc
Msg
Nlb
Rcp
Rd
Reg
Rem
Ren
Rsh
Rsm
Rss
Sc
Set
Sfc
Ver
Vol
Expand Minimize

Prnqctl.vbs

Aktualizováno: duben 2012

Rozsah platnosti: Windows Server 2008, Windows Vista

Prints a test page, pauses or resumes a printer, and clears a printer queue.

For examples of how this command can be used, see Examples.

Cscript Prnqctl {-z | -m | -e | -x | -?} [-s <ServerName>] [-p <PrinterName>] [-u <UserName>] [-w <Password>]

 

Parameter Description

-z

Pauses printing on the printer specified with the -p parameter.

-m

Resumes printing on the printer specified with the -p parameter.

-e

Prints a test page on the printer specified with the -p parameter.

-x

Cancels all print jobs on the printer specified with the -p parameter.

-s <ServerName>

Specifies the name of the remote computer that hosts the printer that you want to manage. If you do not specify a computer, the local computer is used.

-p <PrinterName>

Specifies the name of the printer that you want to manage. Required.

-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 do not 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.

  • The Prnqctl.vbs 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.vbs file, or change directories to the appropriate folder. For example:

    Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prnqctl.vbs
    
  • If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name").

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

Byl tento obsah pro vás užitečný?
(Zbývající počet znaků: 1500)
Děkujeme za váš názor.

Obsah vytvořený komunitou

Přidat
Zobrazit:
© 2014 Microsoft