Use auditing to track who deleted your files

I had a reader write me a few days ago:

…I’m in a school environment and a student has deleted some files and I would like to know how I can do this in Win2k server to catch this sucker. Please advice and more power to you.

This can be accomplished through auditing. Lets start out by identifying what folder we want to watch – and be careful where you turn on auditing…turn it on too many folders with too many options and you can have huge performance issues.

We find the folder we want, and right click on it and go to properties

Audit For Deleted Files Properties

This will bring up the properties page for the folder. Move over to the security tab, and click on the advanced button:

Audit For Deleted Files Properties Page

The advanced page will appear. Click on the Auditing tab, and click the add button:

Audit For Deleted Files Advanced

A user dialog will come up. I chose to put the “Everyone” group here. This allows me to audit for any possible user account that may be deleting files. If you think you know who it might be…you could put those users here instead. The smaller window of users being audited means better performance.

Audit for Deleted Files User Selection

Once you click OK, a selection box will be displayed. Again – chose only the options you need. Each additional option will reduce performance. Here I just pick the options to audit deleting files and folders

Audit For Deleted Files Event Selection

Click OK through all of the windows you have open. If a user deletes a file or folder Windows will write an event to the security log.

Now. We have our auditing turned on, and you get to work one morning and find that files are missing. Simply open the event viewer and move over to the security log. Look for the event ID 560:

Audit For Deleted Files Security Event 560

Double click on the event, and you will need to sit there and read it for a little bit to determine who did what. Here is an excerpt from mine (I copied the text from event viewer to notepad for easier reading)

Audit For Deleted Files Security Event 560 View

We can see from this log entry that the user Administrator deleted the file setuperr.log

Now when someone deletes a file, you will have no problem determining who did it.

If you have a windows administration question, or an idea for a utility please send me an email at support@intelliadmin.com. I can’t promise that I will answer every email, but I try to read them all.

Filed Under: Windows

Comments

  1. alcatraz says:

    is this applicable with in a domain?

    Steve Says:

    Yes, this will work in a domain environment also

  2. jay says:

    Is it possible to put an intervention before moving the folder like “do you want to move or copy files from this folder. by doing this the user has to reply yes or no before the folder moves.

    Thanks,

  3. No. You would need to disable read, write, or delete permissions to do what you want to accomplish.

  4. Andy says:

    Thanks for the instruction above but this setup is for future incidents.
    I have a file that was already deleted. How can I track down who deleted my directory/file? I was able to recover them from my backups but I need to track down who did it. Audit was never turned on.

  5. I don’t think there is any way to know who deleted it. Without auditing turned on, there are no logs of who deleted the file.

  6. Andy says:

    Thanks Steve!

  7. Francesco says:

    Pay attenction that this log is write also if you create a folder. Where you read delete is the type pd permission not the action that the users made

  8. jojiepl01 says:

    My concern is to monitor who, what and when a certain file/s was deleted in a shared folder inside a domain controlled invironment. I have done the above instruction with the CPU that has the shared folder (local) and tried it by copying and deleting files inside the monitored shared folder from a remote CPU with an iterval of 10 sec from copying to deleting. Then i went back to the local computer and open the local event viewer. Their was no 560 in the Event ID during that time, most are 538 and 540. Is there any thing else that i may have left undone, or should i do something more in configuring this utility. This is a very hekfull utility and i realy would like to use it, Please help.

    Thanks in advance,

    jojie

  9. Mark says:

    Did you disable auditing via group policy? That would cause auditing to fail if configured locally.

Leave a Reply

Please wait while we add your email address to our list

Join our Tips and Software Email List

Get free software, news, and tips
once a week by joining our email list
Enter your email address below

Just like you, we hate spam.

We promise to never sell, or spam your inbox

Thanks for joining our list, and have a great day!

Error adding address

There was an error adding your email address.
It might be because you are already on our list.
If this is not the case, please try again later. Thanks!