I'm a bit embarrassed to say how much time I've spent on this!
I dont have any issues using the ADUC GUI (Active Directory User and Computers) to find the group, All Supervisors in east.ad.company.com. The result comes up within a few seconds.
However, if I try to do the same thing using the Active Directory module:
Get-ADGroupMember "All Supervisors" -server east.ad.company.com
produces the error:
....FullyQualifiedErrorId : Cannot find an object with identity: 'All Supervisors' under: 'DC=east,DC=ad,DC=company,DC=com'.,Microsoft.ActiveDirectory.Management.Commands.GetADGroupMember...
---------------------------------------------------------------------------------------------------------
A few things to note:
---------------------------------------------------------------------------------------------------------
Lastly: I would also like to know how to do the equivalent of searching in ADUC for Users and Groups in "Entire Directory" in Powershell (ideally a simple function or script I can use to quickly search do this at the command-line; instead of depending on the ADUC GUI app). Surely, there has to be a way to do this using pure powershell!
Searching the 'Entire Directory' is known as a Global Catalog search, so you just need to tell PowerShell to use the Global Catalog. It's found on DCs on port 3268 (instead of 389). Not all domain controllers have to hold the Global Catalog - it's up to your admins to decide. You can query for GC servers with
(Get-ADForest).GlobalCatalogs
I only have a single domain, so i can't test this but I believe you'll want something like:
Get-ADGroupMember "All Supervisors" -server dc1.east.ad.company.com:3268 -SearchBase ad.company.com
assuming your forest root is ad.company.com.