?
Solved

Net printers in W2003 & XP pro SP2

Posted on 2006-11-15
3
Medium Priority
?
252 Views
Last Modified: 2010-03-18
Hello.
I have a Windows 2003 server sharing all the printers in the company i work for. Because of the company's policy i can't add printer as local.
The problem is that everytime a user logs on a computer they never used before i have to add the printer to his user.
Can i put a net printer onto a PC and everytime a user logs on have the prnter available?
Sorry for my english, and if anybody needs more info just let me know.
Thanks!.
0
Comment
Question by:papaez
  • 2
3 Comments
 
LVL 12

Expert Comment

by:NetAdmin2436
ID: 17950035
Your right, setting up a printer locally through TCP/IP would work. Since you can't do that because of policy, here's a few other things to consider.

If you have Windows 2003 R2 you can use group policy. This however MUST BE 2003 R2
http://www.windowsnetworking.com/articles_tutorials/Managing-Printers-Group-Policy-Part2.html

If you feel comfortable, you could also create a script for your users. So once the user logs into the domain, a script will run and setup the printers for every user each time. There's many, many scripts out there. http://www.computerperformance.co.uk/Logon/logon_scripts.htm

I will give you the one i use, you can modify for your needs. So take the script below(everything after begin script to everything before end script), copy it into nopepad. Save as something like 'printers.vbs'. Put the file in a shared folder like your NETLOGIN share. On my domain it's under C:\WINNT\SYSVOL\sysvol\company.com\scripts. Obvisously you have to change the \\Server\Printer to your server name and printer name.
****This script will delete any and all network printers and add new ones. It does NOT delete any locally attached printers.

<begin Script>
arPrt = array("\\Server\Printer1", _
                    "\\Server\Printer2", _
                    "\\Server\Printer3", _
                    "\\Server\Printer4", _
                    "\\Server\Printer5", _
                    "\\Server\Printer6", _
                    "\\Server\Printer7")

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
Next
On Error Resume Next

y = 0

Do until y = 6
           wshNet.AddWindowsPrinterConnection(arPrt(y))
           y = y +1
loop

wshNet.SetDefaultPrinter arPrt(1)
<End Script>


Then open up your normal login script in notepad. In your normal login script at the bottom, add the following line:
start \\Server\NETLOGON\printers.vbs


This may look a bit confusing, but if you can grasp scripting, it will make your job a LOT easier.

Hope this helps
0
 

Author Comment

by:papaez
ID: 17954795
Ok, but that script will add every printer to every user. What i need is to install the closest printer to the user.
0
 
LVL 12

Accepted Solution

by:
NetAdmin2436 earned 1000 total points
ID: 17958057
You have to modify the script or make your own. I gave you a link to other scripts, here's some more.
http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_20943033.html

How many computers/printer senarios do you need???

Another thing you can do is to just create a script to map 1 printer, then put that script in the startup folder for all users for that particular computer. Then, anyone who logs into that computer will get that particular printer you assigned in the script. You need to put this in every computer.
http://www.computerperformance.co.uk/Logon/LogonScript_Printer_Method.htm
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Screencast - Getting to Know the Pipeline

850 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