I'm attempting to push HP LaserJet Printer drivers (4000, 4100, 4200, etc) out to all of our PCs on the domain and am looking for some advice on what to put in the the command line, etc.
Eventually I'd like to be able to push all print drivers to each machine so they have them no matter which printer a user selects to use.
Answers (3)
cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "HP Universal Printing PCL 6" -i "\\NETWORKSHARE\HP4050\hpcu118u.inf && cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -ac -p "\\PRINTSERVER\PRINTERNAME" If you want to make it the default printer, add: cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -t -p "\\PRINTSERVER\NEWPRINTERNAME"
I just went through scripting this for a migration to a new print server. Here's what you need to just install drivers and the printer:
cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "HP Universal Printing PCL 6" -i "\\NETWORKSHARE\HP4050\hpcu118u.inf && cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -ac -p "\\PRINTSERVER\PRINTERNAME"
I just put the drivers on a read-only share on our print server so the clients could access them for the install. Let me know if you need help. Use the latest HP Universal print drivers.
If you want to make it the default printer, use:
cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -t -p "\\PRINTSERVER\NEWPRINTERNAME"
More information on prnmngr.vbs is here:
http://technet.microsoft.com/en-us/library/cc725868(v=WS.10).aspx