This process needs to run as a login script for all users. I'm not sure thsi helps.
Main Topics
Browse All TopicsHi,
I need a login script that will determine a user's default printer, check to see if that printer is duplex capable, and then enable duplex if applicable.
Help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This might be a solution for you it will do what you described in your question. It will use Windows Management Instrumentation (WMI) to look for default printer and evaluate if its duplex capable, then it will use a external tool from Microsoft Windows Resource kit for 2003 server (works on XP) to set the duplex default on that printer.
What will it require....download the resource kit from the link below, install it on a computer and look for the file SetPrinter in the installation folder for the ResKit, decide where you want this file on to be executed on the clients and then you only need to change the path in the script below.
I have been looking for really long time for a way to change to duplex, media size etc without success until I ran into the SetPrinter utility from MS. I would of course want a "built-in" way to do it without executing an external .exe file.
Windows Resource kit
http://www.microsoft.co
You find info about how to change SetPrinter by running the utility in a command shell, this utility is based on different PRINTER_INFO levels and the script I describe belowe is using level 9 which means that it will only change the settings for current user i.e. in the printer properties pages it will only change under General tab | Printing preferences and that is most likely what you want to do, if changing under Advanced tab | Printing Defaults it will be changed on the server if its a network printer and then all connecting users to that printer will be using those settings.
I hope this sample gave you a pointer in the correct direction, and I am fully aware that the script can be optimized or changed to be better.
Good luck!
/ Mikael
Business Accounts
Answer for Membership
by: suhasbharadwajPosted on 2009-01-08 at 01:58:14ID: 23323416
Hi,
sx/Win32-P rinter-0.9 .1/Printer .pm
The perl module Win32::Printer helps you to get the details.
http://search.cpan.org/~wa
Also, In ppd you can check what the default option set for Duplex.
Cheers...
Suhas