Using PowerShell - Get only users from member a group

Опубликовано: 27 Июль 2026
на канале: microsoft lab
635
7

Using PowerShell - Get only users from member a group

1. Prepare

DC1 : Domain Controller(Yi.vn)

2. Step by step : Get only users from VPN group

DC1 : Get only users from VPN group

Using interface :

Server Manager - Tools - Active Directory Users and Computers - Groups OU - Double-Click VPN - Members tab - Check members of group

Using Windows PowerShell :

Server Manager - Tools - Active Directory Module for Windows PowerShell, type :

Get-ADGroupMember -Identity VPN # Show all members of VPN group

Get-ADGroupMember -Identity VPN | Select Name,ObjectClass # Show all members of VPN group with name and object class

Get-ADGroupMember -Identity VPN | Where-Object{$_.ObjectClass -eq "user"} | Select Name,ObjectClass

Get only users from VPN group










--------------------------------------********************    / microsoftlab   ********************-----------------------------------