Re: Enumerate members of Administrators Group (AD)
- From: "BH Jodo Kast" <benjaminlindelof@xxxxxxxxx>
- Date: 3 Mar 2006 10:20:13 -0800
Tested your new script. Added quotes around the LDAP directory name.
Results are:
"TEST**Exception** System.Runtime.InteropServices.COMException
(0x80072030): There is no such object on the server at
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at
System.DirectoryServices.DirectoryEntry.Bind() at
System.DirectoryServices.DirectoryEntry.get_AdsObject() at
System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne) at
System.DirectoryServices.DirectorySearcher.FindAll() at "
Right now not looking for "ou=Domain Admins" I am looking for
"cn=Administrators,cn=Builtin," I changed your code to:
"LDAP://cn=Administrators,cn=Builtin,dc=DOMAIN,dc=EXT" ... no Error,
but no results.
After debugging, looks like the filter is removing all the results?
Removed the filter. Still removing results. Commented out the
"PropertiesToLoad"... no luck.
Using the VBS script above, I get 4 admins for Administrators/Builtin.
.
- Follow-Ups:
- Re: Enumerate members of Administrators Group (AD)
- From: vbnetdev
- Re: Enumerate members of Administrators Group (AD)
- From: vbnetdev
- Re: Enumerate members of Administrators Group (AD)
- References:
- Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: vbnetdev
- Re: Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: BH Jodo Kast
- Re: Enumerate members of Administrators Group (AD)
- From: vbnetdev
- Enumerate members of Administrators Group (AD)
- Prev by Date: Re: Enumerate members of Administrators Group (AD)
- Next by Date: Re: Enumerate members of Administrators Group (AD)
- Previous by thread: Re: Enumerate members of Administrators Group (AD)
- Next by thread: Re: Enumerate members of Administrators Group (AD)
- Index(es):
Relevant Pages
|