• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

Turn off print spooling via script after a printer has been installed

My problem:  I have several tablets using Windows XP sp2 that perform a very special purpose.  We also have a multitude of HP 460 printers.  Staff are allowed to pick up both a tablet and any printer.  I have a script that removes all printers on shutdown to avoid the presence of multiple printers over the course of time.  After the tablet has been shutdown any printers are removed.  BUT, and here is where I'm stuck, once a printer is attached and the tablet powered on everything loads correctly.  I would like to set a few of the print options, ie print direct instead of the default print spooling.  I'm not talking about the print service as that would stop all printing.  It's an option commonly found in most print drivers, but I can't seem to find a way to programmatically change the option.  I've adjusted a few settings in the registry but they don't seem to be taking effect.  

Any thoughts?  
0
lifebloodIT
Asked:
lifebloodIT
1 Solution
 
KenneniahCommented:
cscript prncnfg.vbs-t -p Printername +direct

You'd just have to include a line with the printer name of each possibly connected printer.

http://technet.microsoft.com/en-us/library/bb490971(TechNet.10).aspx
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now