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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping printers to users via Active Directory

Status
Not open for further replies.

mcnuttlaw

IS-IT--Management
Aug 30, 2003
28
US
I am using marcdmac's excellent login script.

Here's my situation:

I've got 20 users and 4 printers. Each user prints to their default printer of choice which they can set at their workstation. However, I'd like to set their default via the login script so if a user temporarily changes their default and forgets to change it back, the login script will change it back for them.

I'm looking for a way of setting this default in Active Directory by typing in the name of the network printer into an unused field such as Office or Description. So the Office field can have the printer name of EastSide which I'm hoping the login script can access/read. Is there a way of using the login script to read that AD field? If so, I can feed the printer's name into the script.

I don't want to do a Select Case since it will make the script rather long.

any ideas?
 
Yes, you could do it this way, but with only 4 printers there is an easier way. Create a global group for each printer and then assign users to one group for their primary printer. Then use a script that enumerates the groups and sets the default printer. You will find all of the needed code in my FAQ. faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top