Search for All Users Whose Accounts Have Been Disabled

Sample script that searches Active Directory for all disabled user accounts. The userAccountControl attribute is replicated to the Global Catalog. This means you can connect to a

5 Star
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
  • What if I need to list users only in specified AD group recursively
    1 Posts | Last post March 08, 2013
    • Hi, Thanks for great script. However, what I need is slightly different. What would be the script alteration, if I wanted to find disabled users in specified AD group recursively?
      I have 4 groups in AD that I need to search for disabled users. There is in total about 13000 users in these groups (splitted across domain, but still in 1 forest).
      Thank you very much for help!