Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Active directory Interfaces > VB Script retre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 2341 of 2407
Post > Topic >>

VB Script retreive Object Class

by "nightstar@[EMAIL PROTECTED] " <nightstar@[EMAIL PROTECTED] > Jul 23, 2008 at 02:06 PM

Good Afternoon,

We are creating a script to return all groups and their members in
active directory.

The script first querys AD using ADODB by executing SELECT Name,
groupType, distinguishedName, member FROM 'LDAP://dc=sd,dc=com' WHERE
objectCategory='group'

From here I iterate the list of returned objects by pasing the
distinguishedname as a parameter to a funtion that basically does:

	Set adobj = GetObject("LDAP://" + distinguishedName)
	adobj.GetInfo


I want to be able to determine if the returned object is a user,
group, computer, etc.  How do I go about this?

Thanks
 




 4 Posts in Topic:
VB Script retreive Object Class
"nightstar@[EMAIL PR  2008-07-23 14:06:04 
Re: VB Script retreive Object Class
"Joe Kaplan" &l  2008-07-23 17:31:05 
Re: VB Script retreive Object Class
"nightstar@[EMAIL PR  2008-07-23 15:53:14 
Re: VB Script retreive Object Class
"Joe Kaplan" &l  2008-07-23 20:28:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 22:02:44 CST 2008.