We occasionally need to make a note of the groups a user is a member of. If they’re going on maternity leave, for example.

This script does require the Active Directory Module For Windows PowerShell.

$user = "username"

Get-ADPrincipalGroupMembership $user | select name



Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.