Using PowerShell - List the groups to which a user belongs

preview_player
Показать описание
Using PowerShell - List the groups to which a user belongs

1. Prepare

- SYNTAX :

Get-ADPrincipalGroupMembership [-Identity] ADPrincipal [-AuthType Negotiate | Basic]

[-Credential pscredential] [-Partition string] [-ResourceContextPartition string]

[-ResourceContextServer string] [-Server string] [CommonParameters]

2. Step by step : List the groups to which a user belongs using PowerShell

- DC21 : List the groups to which HiepIT belongs using PowerShell

+ Start - Windows PowerShell, type :

+ Get-ADPrincipalGroupMembership HiepIT | Select Name
Рекомендации по теме