I have been tasked to create a list of members of a custom object/custom attribute in Active Directory. I felt the best way to do so is use PowerShell. I can list the objects in a specific OU, but I cannot drill down further to get the members/values of a specific attribute within the object. Here is what I have:
Custom Attribute: bofaAMLMember (This is a objectclass= top:attributeSchema)
If I run:
Get-ADObject –LDAPFilter "(ObjectClass=bofaAML)" –SearchBase "OU=DEVELOPMENT,OU=IIS,OU=APPHOST,OU=SERVERS AML,OU=BAND,DC=CORP,DC=someplace,DC=COM" -searchscope subtree
The output is a long list of data:
DistinguishedName Name ObjectClass
--------------------------------------------------------------------------------------------------
CN=RG-AdministratorsMembers,OU=Ld Unified RG-AdministratorsMembers bofaAML
CN=RG-PowerUsersMembers,OU=Ld Unified RG-PowerUsersMembers bofaAML
CN=UR-DenyLogonViaTerminalServ,OU=India UR-DenyLogonViaTerminalServ bofaAML
CN=UR-LogonAsService,OU=India Remitter UR-LogonAsService bofaAML
I truncated the list due to width etc.
It shows me all the items that have the custom attribute bofaaml and object class of attributeSchema.
If you are in AD or ADSI and you open up any of these and go to "Attribute Editor" there you will see an attribute named: bofaAMLMember - This has a multi-value "members" The members are other AD accounts/attributes listed by CN. I need the list of the members. I have been working on this for a week and I can't seem to get it to work. I am not sure if there is a way to add in Get-Member etc...