Blog - William Bargent

I'm a Network Engineer with AWS and Azure Ops experience. A hobbyist Web Design / Developer blogger and Linux Server Engineer; taking on private development work and contributing to open-source projects.



How many users are in your AD Group?

Simple command which will count how many users are in your Active Directory group. This will require administrative privileges. In PowerShell run: Import-Module ActiveDirectory (get-aduser -filter {memberof -recursivematch “CN=Staff,OU=Groups,DC=bargent,DC=com”}).count

© 2019 Blog – William Bargent — Powered by WordPress

Theme by Anders NorenUp ↑