How To Get PowerShell Ad Group Membership Details

Asked By 0 points N/A Posted on -

How to get the PowerShell ad group membership details for a user? Are there more than one ways to get the adgroup membership in PowerShell?

Answered By 0 points N/A #162184

How To Get PowerShell Ad Group Membership Details


To get the ad group membership for a user, try this simple command to execute in Power Shell:

$strUserName = "Name Of User"

$strUser = get-qaduser –Any Acc Name

$strUser Name $strUser.memberof

You can also get ad group membership details by executing another command, i.e.,

Get-AD Principal Group Membership:

Get-AD Principal Group Membership Any User Name | select any name

For name

Workstation Admins

Domain Computers

Automated Processing Team

There are other commands as well but they are quite complicated and difficult to understand.

Login/Register to Answer

Related Questions