Hi All,
I am looking for a script which will export below user attributes of a AD group for e.g. DL_APP_TM_CTX...THis is domain local group.. users from different child domain and trusted domain are member of this group.
I have been searching through google..but no luck....can someone help me?
GroupName (sAMAccountName of the group)
displayName
sAMAccountName (sAMAccountName of the user)
domainName (domainname\username like DOMAIN1\mghadge)- Domain from which user belong to...
givenName
sn
email
My Domain Structure:
abc.local.com - this is child domain where DL_APP_TM_CTX (domain local) group is created
pqr.local.com - child domain
xyz.local.com - child domain
wcl.com - trusted domain
Users from above 4 domain are member of DL_APP_TM_CTX group.
.... I Am trying below powershell script but its not pulling any information from trusted domain I.E WCL.COM
Get-ADGroupMember "DL_APP_TM_CTX" | Select-Object samaccountname, name, distinguishedname | Export-CSV -path "c:\test.csv" -notypeinformation
CAN SOME PLEASE GUIDE
Thanks & Best Regards, MPG