How often do you find files on your network file server that clearly shouldn't be there? Developers are notorious for creating temporary files and littering your file system with them. So how can you identify exactly who created or modified the file, and when?
Figure: Who created this file?
Figure: Terminal into your file server using Terminal Services
Figure: It was Jatin!
The easiest way is to configure Windows file auditing .
Thankfully, Windows Server come with built-in file auditing. Any changes create and delete can be logged to your system event log. Here's how to set it up.
Figure: Select the folder you want to configure auditing for
Figure: Select Everyone so that anyone who modifies any of the files will be logged
Figure: Select these 4 options (only audit the events you need to audit - there's no need to log when someone opens a file)
Figure: Keep your log file to about 250MB - otherwise, your system performance may suffer
Now test to see if auditing is working.
Figure: Any creates, deletes and updates now get logged to the Event Log
That's all! It is also great for finding out who accidentally deleted files from the file system.
Furthermore, we can dump the event log to an Access or SQL Server database to make it easier to handle. Here is how to do it:
Done, now you need only double-click to start it.
Figure: Caught an action on remote server and logged it to database