Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Net printers in W2003 & XP pro SP2

Posted on 2006-11-15
3
Medium Priority
?
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Resolve DNS query failed errors for Exchange
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
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…

618 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