I've got a requirement for a script that runs at logon that checks for a user's membership in a group. The problem with the script I use now is that it does not take into account the fact that a user might be a member of a group WITHIN the group that I'm checking for. As an example, the group I want to check for might be "CitrixApplications". Within that group I might have other groups listed (eg. "Accounting","Purchasing", etc.). The user might be in the "Accounting" group, but when I check the user's AD group membership, they don't show up as a member of "CitrixApplications". Is there an easy way to check a group for a specific user, even if the user is in a nested group?
Thanks in advance!
Dan
Why is it called "Common Sense"? It doesn't seem all that common!
the scripts from Richard Mueller at www.rlmueller.net
can help you
vbscript functions to test for group membership
http://www.rlmueller.net/freecode1.htm
Perfect! IfMember #7 did the trick. I'd found some other code, but if the user WASN'T in the top-level group, it took too long for the script to run. The code you suggested was much faster. Thank you!