Will IFMEMBER identify Global Groups

Earlier I posted a question regarding the IFMEMBER command, and though I had it figured out, thanks to the advice of Experts-Exchange.  On closer inspection, however, I see the program does not display, nor test for Global Groups.  

Any ideas?

thanks,

Bruce Leypoldt
MHCITAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MidnightOneCommented:
If you're delving into all manner of groups, you may want to check out Kixtart scripting, which handles a wild variety of tests, from groups, ADSI, ADO and WMI, among others. They can be found at http://www.kixtart.org/
0
MHCITAuthor Commented:
Actually, I finally go IFMEMBER tow work.  I had forgotten to log the user off and back on after adding them to a given Group.

Now, I need the proper syntax to test for multiple group memberships for a given user.  If the User is in either of these groups, I want to map a drive.  Example:

IFMEMBER (Group1, Group2, Group3)
if errorlevel 1
net use x: \\mhc01\data

I'm sure the syntax I have for IFMEMBER is not correct, and need someone to tell me how to fix it.

Thanks,

Bruce
0
MidnightOneCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.