Solved

Net printers in W2003 & XP pro SP2

Posted on 2006-11-15
3
210 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 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