Link to home
Start Free TrialLog in
Avatar of skrysiak
skrysiakFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Configure HP LaserJet printing preferences using batch file or VBScript

I have been able to successfully map our HP LaserJet P2015 printers to all Windows XP workstations on our network based on the user's AD credentials and computer name, but users still have to alter the printing preferences themselves - e.g. selecting the tray containing letterhead paper, activating duplex on plain paper, printing onto envelopes in the manual feed tray...

This is fine for some of our more experienced users, but for those who are less familiar with altering Windows system settings this can be frustrating to change the printing preferences at every login (users don't necessarily use the same workstation each day). I've tried copying the settings to a file using RUNDLL32 PRINTUI.DLL,PrintUIEntry /Ss /n "printer" /a "file.dat" and restoring the settings with RUNDLL32 PRINTUI.DLL,PrintUI /Sr /n "printer" /a "file.dat", but this doesn't seem to work with the printing preferences (such as paper source, duplex, covers, et cetera).

Is there a way of setting the HP printing preferences using some kind of login script, registry entry, command line or Group Policy object?
Avatar of Shift-3
Shift-3
Flag of United States of America image

These settings are probably stored in registry entries.  A good way to track this down is to run Process Monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) while changing the settings manually.  It will tell you exactly which registry entries were modified.  You could then create a logon script to set the desired values for all users.
ASKER CERTIFIED SOLUTION
Avatar of JManicki
JManicki
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of skrysiak

ASKER

I tried RegMon to see what was going on under the hood, but there were several entries being read and edited that didn't refer to printing, so I missed this one.

Thanks for the help, the VBScript is much appreciated!