Solved

Net printers in W2003 & XP pro SP2

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 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