Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Show Group Members with PowerShell

$
0
0

Summary: Use Windows PowerShell to get a list of group members in Active Directory.

Hey, Scripting Guy! Question How can I use Windows PowerShell to regularly show who is in an Active Directory group, for example, Domain Admins?

Hey, Scripting Guy! Answer To show who is in the Domain Admins group in Active Directory, run the following command:

Get-ADGroupMember DomainAdmins

If you’d like to view this in a nicer format, use:

Get-ADGroupMember DomainAdmins | FORMAT-Table


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>