Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation of adding Network Printer

Status
Not open for further replies.

arjagadish

Technical User
Jan 6, 2003
36
0
0
IN
Hellow,

We need to install the network printer for all the users, based on their Department.

It's really a pain, adding the printer to each user and when they log onto a different workstation, again, we have to do it.

Anyway, to automate this process thru script or some policy.
All clients are 2K Professional,Server is NT 4.0 right now but,we're migrating in a month's time.

Any help regarding this is appreciated. We have to do this on Departmentwise. We have two network printers and two departments............one network printer for each division.
 
You could use vbscript and windows scripting host to do this.

There is an object called wscript.network which allows you to install 2 kinds of printers..DOS printers(LPT1)... and windows printers.

The code would look like this

set wshnetwork = createobject("wscript.network")
wshnetwork.addwindowsprinterconnection "\\server\printer"


Hope this helps..

mot98
[cheers]
"I'd rather be dead and cool..then alive and uncool."
---Harley Davidson & The Marlboro Man
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top