Count members of Specific Active Directory Group

Command prompt and PowerShell Forum
Post Reply
User avatar
hepek
Site Admin
Posts: 451
Joined: 24 Oct 2018, 00:03
Location: @HEPEK HQ
Contact:

Count members of Specific Active Directory Group

Post by hepek »

Count members of Specific Active Directory Group

Launch Windows PowerShell ISE

Code: Select all

[array]$users = (Get-ADGroupmember -Identity "Test_Environment_VPN")

$users.count
Post Reply

Return to “PowerShell”