Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Make a local printer default for all users

Posted on 2004-10-25
Medium Priority
Last Modified: 2012-05-05
I have 20 computers with Windows XP Pro that are all on a standardized image.  They are accessed randomly by about 200 users.  Computers are all on a Windows 2003 active directory.

I don't have a print server, but we do have networked printers.  To add them to the computer I created a TCP/IP port for them to use.  This means they are treated as local printers instead of networked printers.  I've found lots of information on how to make a network printer the default printer for users, but not local printers.

The problem I'm running into is that all the users are seeing "Microsoft Office Document Image Writer" as their default printer.  Is there a way I can script this, or use a group policy setting to force a specific printer to be the default?  Is this something set up in the default user profile?
Question by:mslunecka
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 12402059
You can do it using the default profile, when ever I create an image, I create a user account with all the default settings I want, then I logon as administrator and  copy that profile to the default profile.  Goto control panel > system > advanced > user profiles > select desired profile to copy > copy to > browse to deafault user, note you will need to have hidden files and folders turned off to see the default user folder.

once this is done when a new user logs on all settings are created from the default profile.

Hope this helps!


Accepted Solution

salvagbf earned 1000 total points
ID: 12402072
There are two ways to do this, you can either manually go to the command line and run this command, or you can create a .cmd file to just double-click when on the computer (or run from a logon script.)  Regardless, the command you need is

rundll32 printui.dll,PrintUIEntry /y /n "Printer Name"

You'll want to enter "Printer Name" as the actual name of the printer when you look at it in the Printers folder, including the quotes.

That's a pretty powerful command for doing things with printers.  To see a list of other options for it, at the command line type

rundll32 printui.dll,PrintUIEntry /?


Expert Comment

ID: 12402123
The only problem with using the default profile method is that it won't work for users who have already logged on to the machine.  You'd have to remove their profile for that to work.  So if you ever wanted to make a change, not only would you have to remove all the user profiles that get automatically stored on the machine when they log on, you'd also have to go through all the steps for copying to the default user again.  I used to do that, but the method I posted above is significantly easier.  Also, you can use it to add printers, the following command would add a network printer for all users on the machine.

rundll32 printui.dll,PrintUIEntry /ga /n "\\server\printerShare"

Then you'd have to restart the print spooler service, which can be done with the following commands on XP

sc stop spooler
sc start spooler

Again, the rundll32 printui.dll,PrintUIEntry /? command will open a help box detailing all that you can do with that command, it's really powerfull.


Author Comment

ID: 12402688
Thanks, that's just what I needed!

I'll be adding this as a logon script to the machines.  User profiles as well as any changes to files or settings are completely erased every time the computer reboots.  So all I need to do is unfreeze the system and put that in a little vb script and run it at logon with a group policy.

Thanks again!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question