PRNCNFG.vbs – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Configure a printer (set properties, rename).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
Display configuration information about a printer: cscript prncnfg.vbs -g [-s RemoteComputer] -p PrinterName [-u UserName -w Password] Configure a printer: cscript prncnfg.vbs -t [-s RemoteComputer] -p PrinterName [-r PortName] [-l Location] [-m Comment] [-h ShareName] [-f SeparatorText] [-y DataType] [-st StartTime] [-ut EndTime] [-o Priority] [-i DefaultPriority] [{+ | -}shared] [{+ | -}direct] [{+ | -}published] [{+ | -}hidden] [{+ | -}rawonly] [{+ | -}queued] [{+ | -}keepprintedjobs] [{+ | -}workoffline] [{+ | -}enabledevq] [{+ | -}docompletefirst][{+ | -}enablebidi] Change the name of a printer: cscript prncnfg.vbs -x [-s RemoteComputer] -p PrinterName -z NewPrinterName [-u UserName -w Password] Key -s RemoteComputer The name of the remote computer that manages the printer. -p PrinterName The name of the printer. -u UserName -w Password An account with permission to connect WMI services to the computer that hosts the printer. e.g. A member of the Administrators group. -r PortName The port to which the printer is connected. If this is a parallel or a serial port, then use the ID of the port (for example, LPT1 or COM1). If this is a TCP/IP port, then use the port name that was specified when the port was added. -l Location The printer location, such as "Copier Room." -m Comment A comment string. -h ShareName The share name. -f SeparatorText A file that contains the text that appears on the separator page. -y DataType Data types that the printer can accept. -st StartTime Specify a time of the day after which the printer is available. If you send a document to a printer when it is unavailable, the document is held (spooled) until the printer becomes available. Specify time as a 24-hour clock. e.g. 2300 -ut EndTime Specify a time of the day after which the printer is no longer available. -o Priority A priority that the spooler uses to route print jobs. A print queue with a higher priority receives all its jobs before any queue with a lower priority. -i DefaultPriority The default priority assigned to each print job. {+ | -}shared Is this printer is shared on the network. {+ | -}direct Is the document to be sent directly to the printer without being spooled. {+ | -}published Is this printer to be published in Active Directory. If you publish a printer, other users can search for it based on its location and capabilities, such as color printing and stapling. {+ | -}hidden Reserved function. {+ | -}rawonly Are only raw data print jobs to be spooled on this queue. {+ | -}queued Do 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. This option ensures that the whole document is available to the printer. {+ | -}keepprintedjobs Retain documents after they are printed. Allows a user to resubmit a document to the printer from the print queue. {+ | -}workoffline Allow sending print jobs when computer is not connected to the network. {+ | -}enabledevq Print jobs that do not match the printer setup (for example, PostScript files spooled to non-PostScript printers) should be held in the queue rather than being printed. {+ | -}docompletefirst Allocate jobs to a printer as soon as thay are spooled. If this option is disabled, the spooler always sends higher priority jobs to their respective queues first. You should enable this option if you want to maximize printer efficiency at the cost of job priority. {+ | -}enablebidi Send bi-directional status information to the spooler. ? Help |
Prncnfg.vbs is not be included in the Windows PATH but will be found at %Windir%\System32\Printing_Admin_Scripts\en-US\prncnfg.vbs
If installed via the 2003 adminpack, it will be located in the \Program files\Windows Resource Kits\ folder.
1 2 3 4 5 6 |
Examples Set _scripts=cscript %Windir%\System32\Printing_Admin_Scripts\en-US :: Rename printer %_scripts%\prncnfg.vbs -x -p OldPrinter45 -z NewPrinterf4t |
It is appropriate time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I wish to suggest you few interesting things or tips. Maybe you can write next articles referring to this article. I want to read even more things about it!
It’s really a cool and useful piece of information. I’m satisfied that you shared this helpful information with us. Please keep us up to date like this. Thank you for sharing.