There are many reasons why you may want to track file and folder activities on Windows File Servers; including data security and compliance. Knowing when users are accessesing, reading, creating, modififying or deleting your files and folders is of paramount importance when it comes to ensuring the security and integrity of your File Servers. In this article, we will show you how to keep track of what’s happening to your files and folders using native processes, and also how using LepideAuditor for File Server can help to simplify the entire process.
The following are the steps:
Perform the following steps to set up this audit policy:
1. On the primary domain controller, or on a workstation where “Administration Tools” are installed, open “Run” dialog box, type “gpmc.msc”, and click “OK” to open the “Group Policy Management” console.
2. In the “Group Policy Management” window, right-click on the default or a customized domain policy, and select “Edit” from the context menu to open the Group Policy Management Editor window.
Note: It is recommended to create a new GPO, link it to the domain and edit it.
3. In “Group Policy Management Editor” window, navigate to “Computer Configuration” ➔ “Windows Settings” ➔ “Security Settings” ➔ “Local Policies” ➔ “Audit Policy”.
4. Double-click “Audit Object Access” to view its properties.
5. Click “Define these policy settings” checkbox. Click “Success” and “Failure” check boxes.
Follow the below steps to enable auditing for the files and folders you want to audit on your Windows File Server.
1. Open “Windows Explorer”, and navigate to the folder that you want to track.
2. Right-click the folder and select “Properties” from the context menu. The folder’s properties window appears on the screen.
Note: If you want to track multiple folders, you will have to configure audit for every folder individually.
3. Navigate to “Security” tab.
4. Click “Advanced” to access “Advanced Security Settings”. In “Advanced Security Settings” window, navigate to “Auditing” tab.
5. To create a new auditing entry, click “Add”. “Auditing Entry” window appears on the screen.
6. Click “Select a Principal” to choose users whose activities you want to track.
7. “Select User, Computer, Service Account, or Group” dialog box appears on the screen. If you want to audit all users’ activities, enter “Everyone” in the “Enter the object name to select” dialog box, and click “Checknames”. In our case, we enter “Everyone”.
8. Click “OK” to finalize your selection. It takes you back to “Auditing Entry” window.
9. Select “All” in “Type” drop-down menu to monitor both successful and failure events. You can select “Success” to monitor only successful events or you can select “Failure” to monitor only failure events.
10. In “Applies to” drop-down menu, select “This folder, subfolder, and files” option, if you want to audit all the subfolders and the files within this folder.
11. Click “Show advanced permission” option in the permissions section to view all the permissions. Select all the actions that you want to audit. If you want to audit all the actions, click “Full Control” checkbox. Here, we have selected “Full Control” checkbox.
12. Click “OK” to apply the auditing settings. It closes “Auditing Entry” window.
13. Now on “Auditing” tab of “Advanced security settings” window, you can see the newly added audit entry.
14. Click “Apply” and “OK” in the “Advanced Security Setting” window to close it.
15. Click “Apply” and “OK” to close the folder properties window.
After you have configured the above audit settings, you can track any change made to folders, subfolders and files. For that, open “Windows Event Viewer” and go to “Windows Logs” ➔ “Security”. In the right pane, use the “Filter Current Log” option to find the relevant events.
For example, if anyone creates a new file, event ID 4656 and Event ID 4663 will both be logged. To illustrate this, in our case, a file has been created in the “Work files” folder. In the following image, you can see the details of the event ID 4656:
You can see the new file’s name (C:\Work files\New Text Document) which is visible after you scroll down the side bar.
The same event ID 4656 shows all accesses made to the objects, such as files and folders.
LepideAuditor for File Server
LepideAuditor for File Server can be used to track all file and the folder activities of users. Unlike Native Auditing, you do not have to manually enable the auditing for different files and folders. You just have to install the solution, configure the audit settings once and you are good to go.
The following image shows the files and folders creation report. You can filter the records by any column; including file name, creation time, user name and any other available column. All the necessary information related to the create event is shown in a single line record.
In the above image, we have highlighted the record which contains the information about where a file was created. Answers to all relevant audit questions, such as “who, what, when and where” are available in a single line record.
In this article, you have seen how to keep track of all files and folders activities on your Windows File Server using both native methods and LepideAuditor. Clearly the easier option, LepideAuditor for File Server can help you keep track of all the files and folders on your Windows File Servers.
- How to keep track of changes made to your files and folders
- How to assign permissions to files and folders through Group Policy
- How to track permission changes on File Servers
- How to track permissions applied on files and folders in Windows File Server
- How to Track Changes Made to Files in a Shared Folder
- Enable file and folder access auditing on Windows Server 2012