troubleshooting Question

Count of users in AD group

Avatar of kam_uk
kam_uk asked on
DatabasesActive DirectoryExchange
23 Comments1 Solution10484 ViewsLast Modified:

I would like to get a count of users in a Distribution group in AD.

I have used the following command to get an export to xls, csv, txt but the columns aren't arranged in a way to allow me to check out how many users there are.

ldifde -f c:\emeatxt.txt -d "cn=\#Group A,ou
=users,ou=UK,ou=Europe,dc=emea,dc=kam,dc=com" -l "member"

Does anyone know how I can get a count?

Chris Dent
PowerShell Developer
Join our community to see this answer!
Unlock 1 Answer and 23 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 23 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros