XP\ Network printers are not saving  when different users login to windows

Posted on 2007-10-17
Last Modified: 2013-12-15
We are on a domain using AD
The printers are on a windows print server

We have computers on the domain that when different users login, the network printers don't save in the printers list.

This problem began when we migrated  to another domain and roaming profiles were disabled. Now when ever the pc's are logged off and back on, we have to add the network printers all over again.

Any suggestions on why this occurs?
Question by:dtw404

    Assisted Solution

    Printers are set up under user accounts. When your accounts were "roaming" the printers followed them from computer to computer.  Now when the user logs in they are creating a new profile on each computer in C:\Documents and Settings.
    I use mandatory profile in a college open computing lab.  I created a mandatory profile  with the network printers that the students should have access to and put it on the network drive, set up the correct permissions, etc.  Now when they log in they get the profile with the printers.  However, you may not want to use mandatory profiles.  You then could create a "default user" profile.  This profile is saved in Docs and Settings and when the user logs in they would get the default user profile.  
    LVL 12

    Accepted Solution

    I *think* this is your same problem....correct me if i'm wrong.

    You will have to either create some printer scripts to add to your login script....or the startup folder. So when a user logs into the computer, the scripts will run and add the printers. Or you could create local TCP/IP printer ports for the machine. Then the printer will save for any user that logs into that particular computer.

    Here is my script I use. Copy the text below and save as 'printer.vbs'. Save it on the network in your netlogon folder. Then from your login script, call the printer.vbs script.

    arPrt = array("\\Server\Printername1", _
                        "\\Server\Printername2", _
                        "\\Server\Printername3", _
                        "\\Server\Printername4", _

    Set wshNet = CreateObject("WScript.Network")
    Set wshPrn = wshNet.EnumPrinterConnections
    For x = 0 To wshPrn.Count - 1 Step 2
        If Left(wshPrn.Item(x+1),2) = "\\" Then wshNet.RemovePrinterConnection wshPrn.Item(x+1),True,True
    On Error Resume Next

    y = 0

    Do until y = 4
               y = y +1

    wshNet.SetDefaultPrinter arPrt(0)
    LVL 9

    Assisted Solution

    A script is the best way IMHO. With a script you can load printers based on both user and computer what OU they're in, etc.. That way when a user logs on their default printer (and/or other printers) can be the closest to the machine they are using or whatever you decide to load for them.
    LVL 12

    Expert Comment

    Oh, i should've warned you. My script will first go through and purge (delete) any network printers, then add the ones specified in the script. I personally like it because it gets rid of any old non-existent printers that users keep around for years. There's other scripts that will just add the printers. If you need one like that, let us know.  

    Author Comment


    Thanks, both of those are helpful options.

    I was able to use the below to resolve this issue after all.

      rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
      start /wait sc \\%1 stop spooler    (stops print spooler)
      start /wait sc \\%1 start spooler    (starts print spooler)
    LVL 12

    Expert Comment

    Glad you got that figured out and thanks for closing the question with points.
    LVL 9

    Expert Comment

    The printui.dll is very useful.
    Don't forget if you change printer names or drivers or move the machine that you will need to reaccomplish this procedure. A script, since you are operating in a domain environ, would update each time a user logs on. That may be worth the effort of putting one together.

    Cheers and thanks for the points.

    Author Comment


    Great! I'll make note of that. Thanks all for the help!

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article ( first and run the tool TDSSKiller ( to get rid of the infection. Once done, and if the …
    cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    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…

    734 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

    20 Experts available now in Live!

    Get 1:1 Help Now