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

Select from a list of objects?

Status
Not open for further replies.

Chewie71

MIS
Sep 4, 2001
89
US
I am trying to do the following.

1) Query AD for the list of printers in the users OU.
2) Present the user with the list of printers in a dialog box of some type that they can select/deselect.
3) Install or uninstall the printers as necessary.

1 and 3 I've got down. I can pull the printer list for the users OU out of AD, and I can install them. I have just not figured out how to present the users with the dialog box list of printers that they can select from.

I could present them with a series of MsgBox dialogs, one for each printer, but that could become tedious if they have a dozen printers in their OU.

Anyone know of anyway to present the whole list at once and track which ones are selected/deselected?

Thanks,
Matt
 
Maybe you could put your VBScript into an HTA file and then draw the form with HTML ?
 
Yes, I just now saw some references to using HTA with VBScript. I think this is the way I'm going to go. Have you or anyone else got code samples I could look at that does something like what I'm looking for?

I think I may have written a .HTA logon script several years ago at the last company I worked at, but I don't have it anymore and I know it never tried to do any selection type activities.

I'll keep Googling and see if I can kludge together a solution.

Thanks,
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top