Using compare object and qad cmdlets because the environment I am in still has AD 2003. I want to compare security groups I am migrating over and make sure the user accounts are all there. if not list the missing user account from the source domain that's missing in the target domains groups.
This is what I have but its not giving me the result I want:
get-qadgroupmember 'cn=accounting users, OU=Department Groups, DC=domain, DC=com' -type user) + (get-qadgroupmember 'cn=account users, OU=Department Groups, DC=NewDomain, DC=com' type user) | select -expand property samaccountname | sort | select -unique
However it doesn't give me what I want.