How to purge Active Directory in Windows 2003 Server?

Posted on 2006-04-19
Last Modified: 2008-01-09
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?
Question by:Erwin Krisch
    LVL 48

    Expert Comment

    Hi burgkunstadt,

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

    LVL 10

    Accepted Solution

    Try going into Directory Services Restore Mode and doing a repair of the database. Steps can be found here:

    Author Comment

    by:Erwin Krisch
    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.
    LVL 10

    Expert Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now