Set default printer

Set default printer

Post by Bruce Sand » Wed, 03 Aug 2005 06:24:42

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.

Original question:

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.

Set default printer

Post by VGhlV0 » Sun, 11 Dec 2005 02:25:03

Did Microsoft forget to include a Default Printer change when using the
Hardware Profile functionality? I use a different printer at home from my
office printer. Does anybody know how to set a different default printer
from the Hardware Profile selection at boot up?