text stringlengths 0 4.23k |
|---|
{+|-}rawonly |
Specifies whether only raw data print jobs can be spooled in this queue. |
{+|-}}queued |
Specifies that the printer should not begin to print until after the last page of the document is spooled. The printing program is unavailable until the document has finished printing. However, using this parameter ensures that the whole document is available to the printer. |
{+|-}keepprintedjobs |
Specifies whether the spooler should retain documents after they are printed. Enabling this option allows a user to resubmit a document to the printer from the print queue instead of from the printing program. |
{+|-}workoffline |
Specifies whether a user is able to send print jobs to the print queue if the computer is not connected to the network. |
{+|-}enabledevq |
Specifies whether print jobs that don't match the printer setup (for example, PostScript files spooled to non-PostScript printers) should be held in the queue rather than being printed. |
{+|-}docompletefirst |
Specifies whether the spooler should send print jobs with a lower priority that have completed spooling before sending print jobs with a higher priority that have not completed spooling. If this option is enabled and no documents have completed spooling, the spooler will send larger documents before smaller ones. You should enable this option if you want to maximize printer efficiency at the cost of job priority. If this option is disabled, the spooler always sends higher priority jobs to their respective queues first. |
{+|-}enablebidi |
Specifies whether the printer sends status information to the spooler. |
/? |
Displays help at the command prompt. |
<Servername> |
<Printername> |
<newprintername> |
<Username> |
<password> |
<portname> |
<location> |
<sharename> |
<comment> |
<separatorfilename> |
<datatype> |
<starttime> |
<endtime> |
<priority> |
<defaultpriority> |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
{+|-} |
Examples |
To display configuration information for the printer named colorprinter_2 with a print queue hosted by the remote computer named HRServer, type: |
cscript prncnfg -g -S HRServer -P colorprinter_2 |
To configure a printer named colorprinter_2 so that the spooler in the remote computer named HRServer keeps print jobs after they have been printed, type: |
cscript prncnfg -t -S HRServer -P colorprinter_2 +keepprintedjobs |
To change the name of a printer on the remote computer named HRServer from colorprinter_2 to colorprinter 3, type: |
cscript prncnfg -x -S HRServer -P colorprinter_2 -z "colorprinter 3" |
prndrvr |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Adds, deletes, and lists printer drivers. 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 prndrvr file, or change directories to the appropriate folder. For example: cscript %WINdir%\System32\printing_Admin_Scripts\en-US\prndrvr. |
%WINdir%\System32\printing_Admin_Scripts\<language> |
cscript %WINdir%\System32\printing_Admin_Scripts\en-US\prndrvr |
Used without parameters, prndrvr displays command-line help. |
Syntax |
cscript prndrvr {-a | -d | -l | -x | -?} [-m <model>] [-v {0|1|2|3}] [-e <environment>] [-s <Servername>] [-u <Username>] [-w <password>] [-h <path>] [-i <inf file>] |
Parameters |
Parameter |
Description |
-a |
Installs a driver. |
-d |
Deletes a driver. |
-l |
Lists all printer drivers installed on the server specified by the -s parameter. If you don't specify a server, Windows lists the printer drivers installed on the local computer. |
-x |
Deletes all printer drivers and additional printer drivers not in use by a logical printer on the server specified by the -s parameter. If you don't specify a server to remove from the list, Windows deletes all unused printer drivers on the local computer. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.