Monday, October 31, 2016

Powershell" How to get AD group membership of a domain user



The best powershell command to get group membership of an individual is:


Get-ADPrincipalGroupMembership "username of user" | select name   | sort name


This command works well to just get a list of domain groups that the user is a member of.







No comments:

Post a Comment