prncnfg.vbs
Configures or displays configuration information about a printer. Used without parameters, prncnfg.vbs displays command-line help for the prncnfg.vbs command.
- To display configuration information about a printer
- To configure a printer
- To change the name of a printer
To display configuration information about a printer
Syntax
Parameters
Remarks
- This command starts a script that is located in the systemroot\system32 directory. You must type this command at a command prompt with that directory as the current directory, or you must type the full path to that directory at the beginning of the cscript command.
- If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name").
Examples
cscript prncnfg.vbs -g -s HRServer -p ColorPrinter_2
To configure a printer
Syntax
Parameters
Remarks
- This command starts a script that is located in the systemroot\system32 directory. You must type this command at a command prompt with that directory as the current directory, or you must type the full path to that directory at the beginning of the cscript command.
- If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name").
Examples
cscript prncnfg.vbs -t -s HRServer -p ColorPrinter_2 +keepprintedjobs
To change the name of a printer
Syntax
Parameters
Remarks
- This command starts a script that is located in the systemroot\system32 directory. You must type this command at a command prompt with that directory as the current directory, or you must type the full path to that directory at the beginning of the cscript command.
- If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name").
Examples
cscript prncnfg.vbs -x -s HRServer -p ColorPrinter_2 -z ColorPrinter_3
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |