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 KrischAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.