I have a user who I need to determine which groups he is the owner of and export those reults to a text file. The trick here is we utilize TWO domains and so I would need to be able to find which groups he manages in both domains.
I have tried:
dsquery * domainroot -filter "(&(objectCategory=Group)(managedby=""LastName\, FirstName""))" -attr name > C:\Temp\managedby.txt
I get results from this, but his name does not appear in those results, even though I know specific groups he indeed is the owner of.
The domains are designed as: dom1.va.gov and dom2.sub1.va.gov (these are examples, not the actual domains)
Suggestions?