I am looking to get a name-driven group and email-driven group name in a PowerShell query like this.
Get-ADGroup -filter {Name -like "*Admins" }
The result will look something like this:
Group Name | Managed By Name | Managed By Email
The problem I encountered is related to Get-ADGroup and Get-ADUser . In SQL, this “connection” will occur at get-adgroup.managedby = get-aduser.distinguishedname . I know that this is not how Powershell works, I just thought that I would throw away an example of what I'm trying to do.
Any help would be appreciated and appreciated.
source share