Datacrash Forum  


Getting Members or a group - 2006/11/30 13:46 Currently I am working on a project were I read the groups from a txt file and then use Set objGroup = GetObject ("LDAP://cn="""& strGroup &""",ou=customer groups,dc=domain,dc=local")

But when I get to the part

objGroup.GetInfo

arrMemberOf = objGroup.GetEx("member")

It blows with the error "Active Directory: The directory property cannot be found in the cache"

I searched google and most solutions point to typo errors. However my script blows on the part that the group is empty. If the group has members inside the script runs fine?

Any scripting guru out here that can help me?
GPO adicted
  | | The administrator has disabled public write access.
Re:Getting Members or a group - 2006/11/30 14:45 What about a combo of dsquery and dsmod?
Very powerfull tools
  | | The administrator has disabled public write access.
Re:Getting Members or a group - 2006/12/01 10:18 I know it are very powerfull tools but this vbscript should work lol.. that is the anoying part.

Maybe time to look at it from a different angle and find other scripts to copy paste into my scripts.

stupid thing is if the group contains members you get no problems but a nice log.
GPO adicted
  | | The administrator has disabled public write access.
Re:Getting Members or a group - 2006/12/01 10:52 That's not strange because without members you do not have an array. You should write some error handling code.
  | | The administrator has disabled public write access.