Learn about Windows PowerShell
Summary: Use Windows PowerShell to get a list of group members in Active Directory.
How can I use Windows PowerShell to regularly show who is in an Active Directory group, for example, Domain Admins?
To show who is in the Domain Admins group in Active Directory, run the following command:
If you’d like to view this in a nicer format, use:
Get-ADGroupMember DomainAdmins | FORMAT-Table
Perhaps it is just the page formatting, but the group object DomainAdmins needs a space in between Domain and Admins and then, because the contains a space, it will need single (or double) quotes around the entire group object name.
Get-ADGroupMember "Domain Admins"