The default printer setting is a per user setting (part of the user's
profile), so it pretty well has to be set while the user us logged on.
It can be set either of these two commands:
rundll32 printui.dll,PrintUIEntry /y /n printername
cscript prnmngr.vbs -t -p printername
In both cases, printername can be either a local printer's name or the name
of a network printer (e.g. \\servername\printername). If the printername
contains spaces or other special characters, enclose it in qoute marks.
These commands can be put into a logon script or into a command file in the
All Users\Startup folder.
The script - prnmngr.vbs is available only on Windows XP and Windows Server
2003. It is in %systemroot%\system32.
What I really need is some kind of utility to make a particular network
printer the default for all users. From the hours and hours I've spent
looking online, I am far from alone in my quest. Microsoft has an article
307016 that involves registry editing etc but that is far from ideal.
Do you know of any utilities that can do what I need? I am not a VB
programmer by any means but I could manage to create a form with a couple of
controls and a bit of code.
Do you have any ideas, pointers or inspiration?
Bruce Sanderson MVP Printing
It is perfectly useless to know the right answer to the wrong question.