Adding a printer to workstations

Posted on 2004-08-23
Medium Priority
Last Modified: 2010-05-18

I work in a school and have been upgrading to a windows 2003 network with windows XP workstations and all the printers are installed one of the servers and shared.

On the old NT4 network to install a printer we would have to go round to each workstation, isntall the printer on a local port and then create a new port for the printer to look at so the printer was there for all users.

I am trying to find a way of remotely adding various printers to different workstations so that all users can print to the right printer from the workstation without me needing to go round to them.
Question by:KArrowsmith
  • 2

Expert Comment

ID: 11871192
No need for all that if the printers are shared with appropriate drives available either make a quick html page with a descriptive link and VBS script in the background so users can choose their own printer:

Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\printserver\printershare"
WshNetwork.AddWindowsPrinterConnection PrinterPath

or if IE is locked down include the above script within their logon scripts.

We could also do it by policy if you are running AD.

Let me know!


Author Comment

ID: 11871796
I am not realy looking at letting the users install their own printer, and the problem with a logon script is that different pcs user different printers. I'm not sure if its possible to tell which OU a workstation is in from a logon script and then isntall the right printer.

Yes we do have AD running and have searched through GPO about adding printers to OUs but it all seem to be about setting which printers a user can add and where it looks, not actualy seting the printer up without user interaction.

RM use a web based admin system (from what ive seen) and this allows you to say which printers get isntalled on which workstations but have been unable to look at how they do it.

Author Comment

ID: 11881768
I have found a way of doing it but there might be an easier way.

I created a batch file that used the rundll32 command to install a printer to the  right port and then copied this to the right location in sysvol on the server and in GPO told the computers to run a this batch file as a startup script. As the printer port did not stay after a reboot what i ended up doing was to first remove the printer and then add the printer at startup

Accepted Solution

modulo earned 0 total points
ID: 12602056
PAQed with points refunded (250)

Community Support Moderator

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
If you try to migrate from Elastix to Issabel, you will face a lot of issues. These problems are inevitable but fortunately, you can fix them. In the guide below, I will explain how I performed the migration while keeping all data and successfully t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

619 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