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!

How to Auto-Assign Printers

Status
Not open for further replies.

Siochain

Technical User
Mar 21, 2001
6
0
0
CA
I'm a student working with a small (7 client + server) network. The client systems are all running Win2K pro, with the server running Win2K server, as the domain controller, running ADS. All of the clients are, obviously, members of the domain.

I'm curious right now what the easiest way would be to have a printer that's shared (and published into AD), automatically mapped when new users just login. The share and printer, an HP LaserJet III, work correctly, and can be added at any time by hand.

Thanks in advance for any help.
 
You can use login scripts to map printers.

Suppose you want "user1" to user "printer1"
and suppose "printer1" is shared on "server1" :

Make a file user1.bat and place it in the Netlogon share
on your server.

In user1.bat, you can type
net use LPT1: \\server1\printer1

In the AD Users & Computers, go to the useraccount, go to properties, go to 'profile', and type in the Logon script field user1.bat

That's all... it will work great! Peter Van Eeckhoutte
peter.ve@pandora.be

 
Thanks for the help :)

I'll give it a shot as soon as I have a chance.
Much obliged
 
Here is another way. Using a batch file as well
rundll32 printui.dll,PrintUIEntry /in /c(UNC path of print server) /n(UNC path of printer on print server

Example
rundll32 printui.dll,PrintUIEntry /in /c\\pserver /n\\pserver\printer_name

You can also delete printers using the same method
rundll32 printui.dll,PrintUIEntry /dn /c\\pserver /n\\pserver\printer_name /q
/dn says to delete and /q is quit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top