Solved

Net printers in W2003 & XP pro SP2

Posted on 2006-11-15
3
203 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
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 …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

10 Experts available now in Live!

Get 1:1 Help Now