|
|
|||||||
I stole (oops..I mean found..) some code out here that enumerates the groups in a domain and taylored it to meet my needs, I only have one problem now. How can I tell if these groups are global or local? Here's a copy of the script.. code:Also, is there some downloadable reference that tells me what properties I can use under $domain.?? Thx.. |
||||||||
|
|
|||||||
Thanks for the post, but I guess I should've mentioned that I'm a newbie to vb scripting and don't understand his code fully. Do I need the whole UDF to tell if the group I'm querying is a local or global group? What I'm looking for is.. code:Thanks for the post..BREAK ON |
||||||||
|
|
|||||||
The code below is part of the GetGroups UDF in the UDF Library. This set an array of the names of the types of groups. They are positioned in the array such that the index represents the grouptype value. (You will see this later) code:This code gets the name and grouptype values using COM. The grouptype value is used as the index while referencing the $Type array. This will set the group type TEXT from above into your $GroupType variable.Dim $Type[8] code:Does this help or do I need to explain further?$GroupName = $group.Name [ 13. November 2002, 18:08: Message edited by: Howard Bullock ] |
||||||||
|
|
|||||||
OK...I get it now... Thank you.. One question though. How do you know that GroupType is a property of group? Is there a resource somewhere that references that? |
||||||||
|
|
|||||||
A good place to start is the ADSI help file which can be downloaded from Microsoft's site. The next step is to run my EnumObjProps.kix against the object to enumerate the properties. You will find it at: http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=13;t=000139#000003 Note that the properties and their names vary when you use the WinNT:// or LDAP:// ADSI providers. |
||||||||
|
|
|||||||
Dude...you're good!!! This is just what I needed... Thanks for your help!! L8tr... |