[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 559
  • 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?
0
Erwin Krisch
Asked:
Erwin Krisch
  • 2
1 Solution
 
Jay_Jay70Commented:
Hi burgkunstadt,

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

Cheers!
0
 
victornegriCommented:
Try going into Directory Services Restore Mode and doing a repair of the database. Steps can be found here:
http://support.microsoft.com/?id=315131
0
 
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.
0
 
victornegriCommented:
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.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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