To get the members status from the active directory group

By | January 5, 2010

In any environment if the employee leaves the company you have to disable the user account in active directory, all the disabled users are still there in the Distribution list and security groups and have to remove the disabled user account manually

If you want to know all the disabled users from the active directory group use the below command
This command will list the members from the active directory group with the status

Find the command to get the members status from the group (Account disabled or not)

Group name: sales_executes


dsquery group -samid “Group Pre-Win2k Name” | dsget group -members | dsget user -disabled -display


dsquery group -samid sales_executes | dsget group -members | dsget user -disabled -display

Related Articles

how to find the ldap path

List active directory group members

find distinguished name


Does the battle sport a such contour?

Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *