There are probably many ways to do this with vbs, but I use KiXtart for my logon scripts, which includes a built-in INGROUP function:
If INGROUP(MyGroup) map drive Q: to \\server\share, for example. I don't remember all the correct syntax at the moment, but it's extremely simple, and excellent for logon scripts. www.kixtart.org <mc> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe L. Casale Sent: Monday, January 03, 2005 3:41 PM To: [email protected] Subject: [ActiveDir] Script working for some users, and not for others? Hi all, I have this in my logion script, and for some users it works, and others the echo is blank? Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName) wscript.echo ADSysInfo.UserName strGroups = LCase(Join(CurrentUser.MemberOf)) wscript.echo strGroups Is there any known reason someone might share, or a caveat to using this method? Is there a more robust way to get group membership? Thanks! jlc List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated. Thank you. Cintas Corporation. List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
