Tracking Active Directory user and computer account deletions is an important part of your IT security plan. It’s possible your organization has hundreds of Active Directory user and computer accounts to manage. If a user account is deleted, it means that that particular user is barred from accessing data, services, systems and network resources. Similarly, if a computer account is deleted, that particular computer may not be able to use the server programs. Usually, old user and computer accounts have to be deleted in order to clean up Active Directory and eliminate potential security threats, but occasionally a functional user/computer account can get deleted, which can obstruct the normal functionality of the IT environment.

So, can you see why it is important to keep track of all account deletions in your Active Directory? In this article, I’m going to show you the steps you need to take to track user and computer account deletions in your IT infrastructure. We’re going to have a look at both native methods and using our auditing solution; LepideAuditor for Active Directory (and you can decide which one you prefer!).

Step 1: Use “ADSI Edit” to enable auditing

To track deleted user and computer accounts, you have to enable the auditing in Active Directory Service Interface (ADSI). Perform the following steps:

1. Type “ADSIEdit.MSC” in “Run” box or in “Command Prompt”. Press “Enter” key and open its console.

2. Right-click top most node in left panel (“ADSI Edit”).

Figure 1: Right-click on “ADSI Edit”

3. Click “Connect to” to open “Connection settings” window.

4. In “Connection Settings” window, click “Select a well known Naming Context” and select “Default Naming Context” in the drop-down menu.

Figure 2: “Connection Settings” window

5. Click “OK”. It establishes the connection with Default Naming Context and display its tree structure in the left panel.

6. Expand “Default Naming Context” to access the very first node titled “DC=www,DC=domain,DC=com”.

7. Right-click it and select “Properties” to access its properties.

8. Switch to “Security” tab.

Figure 3: “Security” tab in “Properties”

9. To access “Advanced Security Settings” window click “Advanced”.

10. Switch to “Auditing” tab.

Figure 4: Advanced Security Settings Window

Here, add the auditing entry for the users whose actions you want to monitor. If the auditing entry is already added then you can skip this step.

11. Now, click “Add” to add an auditing entry if it does not exist already.

Figure 5: Auditing Entries

12. Click “Select a Principal” to access the window to add the users, whose actions you want to audit.

Figure 6: Select user

13. If you want to audit the activities of every user and object in the network, type “Everyone” in the text box. Else you can type the username such as Administrator

14. Click “Check Names” to verify the name.

15. Click “OK” to add the entered user or object. It takes you back to “Auditing Entry” window.

16. Select “Type” as “All” in its drop-down menu.

17. Select “Applies to” as “This object and all descendant objects” in its drop-down menu.

18. Select all permissions by clicking checkboxes except the following:

  • “Full Control”
  • “List Content”
  • “Read all properties”
  • “Read Permissions”.

19. Now click “OK” to add the auditing entry. It takes you back to the “Advanced Security Settings” window, which now displays the auditing entry, “Everyone” with these permissions.

Figure 7: Window displaying auditing entries

20. Click “Apply” and “OK” to close this window. It brings you back to “Security” tab of the object properties.

21. To close object properties, click “Apply” and “OK”.

22. Close the “ADSI Edit” window.

Step 2: View Events Event Viewer

Once you have enabled auditing, deleted computer and user objects will be logged in the Event Viewer. Perform the following steps to view the events:

Open “Event Viewer” console and go to “Windows Logs” ➔ “Security”.

Search for the event ID: 4726 (user account deletion) and 4743 (computer account deletion). These event IDs identify the user and computer account deletions.

The following screenshots shows the Event ID 4726 for user account deletion.

Figure 8: Event Properties - User Account deletion

You can scroll down to view which user account was deleted.

Figure 9: Displaying deleted user details

Similarly, the following screenshot of Event ID 4743 shows a deleted computer account.

Figure 10: Event properties – Computer Account deletion

You can scroll down to view the computer object that was deleted.

Figure 11: Displaying deleted computer account details

Auditing made easy with LepideAuditor for Active Directory

Lepide Active Directory auditing solution enables you to easily see all changes made in Active Directory Objects; including user and computer accounts. It can give you instant alerts whenever any modifications are made to objects, which enable you to act faster in mitigating the implications that could arise.

The following screenshot displays a “User Deleted” report. You can select an event to dig deeper into the who, what, when and where details of the change. In the left panel, you can see a list of all Active Directory audit reports that can help give you complete insight into the changes taking place in your AD:

Figure 12: User Deleted Report – LepideAuditor

Similarly, the following screenshots show a “Computer Deleted” report:

Figure 13: Computer Deleted Report – LepideAuditor
Figure 13: Computer Deleted Report – LepideAuditor

LepideAuditor is more than just an auditing solution, it is all you will ever need in order to detect and reverse any unwanted or unauthorized changes in Active Directory. LepideAuditor helps you retrieve deleted objects and undo the changes made to modified objects. Our solution regularly captures backup snapshots of Active Directory at periodic intervals. You can restore deleted and modified objects, including User Accounts and Computer Accounts, from these snapshots, even when deleted objects aren’t in "tombstone" or "logically deleted" states.


I hope I’ve delivered what I promised at the beginning of this article. That being, showing you how to track deleted user and computer accounts in Active Directory (and hopefully demonstrating why LepideAuditor is the best way of doing this). Quite obviously, native auditing generates so many logs that it can be difficult for administrators to derive any meaning from them. LepideAuditor, on the other hand, is an automated solution that pro-actively audits, monitors and alerts on changes to Active Directory and Group Policy Objects. Sit back and let LepideAuditor do all the work!

Download LepideAuditor for Active Directory

Lepide® is a registered trademark of Lepide Software Private Limited. © Copyright 2018 Lepide Software Private Limited. All trademarks acknowledged.