Solved

Make a local printer default for all users

Posted on 2004-10-25
2,186 Views
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?
0
Question by:mslunecka
    4 Comments
     
    LVL 1

    Expert Comment

    by:cah28
    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!

    Chris
    0
     
    LVL 6

    Accepted Solution

    by:
    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 /?


    -Bernie
    0
     
    LVL 6

    Expert Comment

    by:salvagbf
    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.

    -Bernie
    0
     
    LVL 6

    Author Comment

    by:mslunecka
    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!
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    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 …
    Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now