I ran the following PowerShell script to compare a list of groups....
$dasMem = Get-ADUser -Server "<some-srv>" -Identity "<some-usr>" -Properties MemberOf | Select MemberOf
$blahx = $dasMem.MemberOf | % { $_ -replace "^CN=", "" } | % { $_ -replace ",.*$", "" } | sort
$blahx
When I got the list, I ended up with a missing group, Domain users
which I believe is a standard default group. Is there any reason why it's missing when I pull the script?
To be clear I was able to see the group in Active Directory Users and Computers
, but not from my script above.