• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

How to purge Active Directory in Windows 2003 Server?

We are running Windows 2003 Server on our network. In the past we used to use a .vbs script to create and delete multiple user accounts starting with the letters STUD (for student). For some reason, when using an alteration of the same script, we corrupted the system. Now when we want to create a STUD user account, the system tells us that the account already exists, but all the user accounts starting with STUD have been deleted.  Not only the above occurs, but all the users in Active Directory, whether starting with STUD or not, disappear. After rebooting the system everything is OK. The user accounts starting with STUD are gone and all the other user accounts that do not start with STUD appear and work properly.  However, after rebooting, the same problem persists when we want to create a new account under STUD. It only happens when trying to create an account that starts with STUD. Is there any way to purge Active Directory with accounts starting with STUD and leaving the other accounts alone?
Erwin Krisch
Erwin Krisch
  • 2
1 Solution
Hi burgkunstadt,

sounds like an AD corruption, i would demote the server and the repromote to reinstall AD

Try going into Directory Services Restore Mode and doing a repair of the database. Steps can be found here:
Erwin KrischAuthor Commented:
Do you know if when trying to repair it might not work and with it detsroys the part of the Active Directory that is working? If so, it would destroy the accounts of the rest of our 800 students.
You should always do a backup before attempting a repair. If the repair fails, you can always do an authoritative restore of the pertinent objects and (hopefully) your problem will be solved.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now