Wednesday September 25, 2019 09:22

Get list of AD groups a user is a member of

Posted by Ureviews

Print This Post Print This Post

In powershell to get the groups that a user belongs to on a specific domain (that you have access to but is not the primary domain) (replace username with the username and the domainname with the domain you want to use) type the following:

(Get-ADUser username -server domainname –Properties MemberOf).MemberOf

To get general info you can use this:

Get-ADUser username -Server domainname

If it’s on the same domain you can just use the net command under command prompt:   Change username to the username you want to inquier

net user /domain username

 

If this helped you please please consider buying me coffee!  Thanks in advance!

 

 

eXTReMe Tracker