|
Hi all,
Long time Kix user, first time poster, lousy COM coder. I am looking for a way to pull the Description information for an object from AD into a variable.
For example, I'd create a group called "Printer_P6500ps", and in the description field for the group I'd put "\\server1". Then when a user logged on, the login script would check their group membership for any starting with "Printer_", parse out the last part of the group name (P6500ps, in this case) and that would be their printer. Then, their script would pull the "Description" field for that group from AD and parse it to find "\\server1" and that would become their print server for that queue.
Some may say "Why not just keep a lookup list of print servers to pinters" or any number of other ways to do this. Well, we're already being mandated to create a printer group that contains the printer name, and include the print server name in the description field, so if I can grab both of these bits of information through Kix I never have to maintain a lookup list, and rarely ever have to touch the script. Wishful thinking? Make sense?
I've had a look through many of the COM posts on grabbing info from AD and some of the UDFs, but haven't found anything to grab the description field of a group. I'm hoping to decide whether to pursue this idea within the next day or so, or revert to my original lookup table concept, and therefore don't have too much time to learn a lot about COM. Any thoughts would greatly appreciated.
Thanks in advance.
|