WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: LAKosin on January 23, 2017, 06:09:07 AM

Title: Check for Group Existence
Post by: LAKosin on January 23, 2017, 06:09:07 AM
I'm drawing a blank on how to check for the existence of a group within Active Directory.
Any hint or suggestions as to how to get started would be greatly appreciated.

Thanks in advance.
Title: Re: Check for Group Existence
Post by: td on January 23, 2017, 06:48:11 AM
There multiple ways to determine if an AD group exists.  Which one you use depends on how much information you have to start with and your technology preferences.  The most generalized solution might be to use the ADSI extender's dsFindPath function.  You can get more information about this function in the Consolidated WIL Help file.