Monitoring File and Folder Activities on Windows File Server

Windows File Server auditing is the process of tracking user activities on files and folders—including access, creation, modification, and deletion—to ensure data security and regulatory compliance. By monitoring these activities, organizations can detect unauthorized access, investigate security incidents, and meet audit requirements for standards like GDPR and HIPAA.

Key Steps to Monitor File and Folder Activities

  • Configure the “Audit Object Access” policy via Group Policy Management/li>
  • Enable auditing on specific files and folders through Advanced Security Settings
  • Review security events in Windows Event Viewer using relevant Event IDs
  • Consider third-party tools like Lepide File Server Auditor for simplified monitoring

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 accessing, reading, creating, modifying 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 Lepide File Server Auditor can help to simplify the entire process.

Common Use Cases

Organizations implement file server auditing for various purposes:

  • Compliance auditing: Meet regulatory requirements for GDPR, HIPAA, SOX, and PCI-DSS
  • Insider threat detection: Identify unauthorized access or suspicious user behavior
  • Forensic investigation: Trace file activities during security incident analysis
  • Ransomware detection: Monitor for mass file modifications or deletions indicating an attack
  • Access governance: Verify that permissions align with business requirements

Prerequisites

Before configuring file and folder auditing, ensure you have the following:

  • Supported Windows Server versions: Windows Server 2016, 2019, or 2022
  • Required permissions: Domain Administrator or equivalent privileges to modify Group Policy
  • Tools needed: Group Policy Management Console (gpmc.msc), Windows Event Viewer
  • Access requirements: Administrative access to the file server and target folders

Step 1: Configure the “Audit Object Access” audit policy

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”.
    properties of Audit Object Access policy
    Figure 1: Properties of “Audit Object Access” policy
  4. Double-click “Audit Object Access” to view its properties.
  5. Click “Define these policy settings” checkbox. Click “Success” and “Failure” check boxes.
    Audit Object Access policy
    Figure 2: “Audit object access” policy

Step 2: Configure auditing on files and folders

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.
    Work files properties
    Figure 3: Security tab of “Work files” folder’s properties
  4. Click “Advanced” to access “Advanced Security Settings”. In “Advanced Security Settings” window, navigate to “Auditing” tab.
    Advanced security settings window
    Figure 4: Auditing tab of “Advanced security settings” window
  5. To create a new auditing entry, click “Add”. “Auditing Entry” window appears on the screen.
    Auditing entry window of the folder
    Figure 5: “Auditing entry” window of the folder
  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”.
    Select users… dialog box
    Figure 6: “Select users…” dialog box
  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.

Step 3: View Events in Windows Event Viewer

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.

Key Event IDs for File Server Auditing

Event ID Description Key Fields to Check
4656 A handle to an object was requested When a user attempts to access a file or folder
4663 An attempt was made to access an object When a user performs an action (read, write, delete) on a file
4660 An object was deleted When a file or folder is permanently deleted
4658 The handle to an object was closed When access to a file or folder ends

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:

The object create event for the file
Figure 7: The object create event for the file

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.

Limitations of Native Auditing

Native Windows auditing has several drawbacks to consider:

  • Manual configuration required: Auditing must be enabled on each folder individually
  • Noisy event logs: High volumes of events make it difficult to identify critical activities
  • No real-time alerting: Administrators must manually review logs to detect issues
  • Limited reporting: No built-in reports for compliance or trend analysis
  • Storage concerns: Security logs can fill up quickly, potentially overwriting important events

Track File and Folder Activities Easily with Lepide File Server Auditor

Lepide File Server Auditor 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 and configure the audit settings once and you are good to go.

The following image shows the files and folder 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.

file and folder creation report from Lepide
Figure 8: File and Folder creation report

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.

Native Windows Auditing vs. Lepide File Server Auditor

Feature Native Windows Auditing Lepide File Server Auditor
Setup complexity Manual configuration per folder One-time automated setup
Reporting capabilities Raw event logs only Pre-built compliance reports
Real-time alerts Not available Customizable real-time alerts
Event correlation Manual analysis required Automatic correlation
Storage management Manual log management Centralized audit data storage

Frequently Asked Questions

What is Event ID 4656?

Event ID 4656 is logged when a user requests access to a file or folder, indicating an attempt to open an object handle.

What is the difference between success and failure auditing?

Success auditing logs when an action completes successfully, while failure auditing logs when an action is denied due to insufficient permissions.

What are the limitations of native Windows auditing?

Native auditing requires manual configuration per folder, generates high event volumes, lacks real-time alerting, and provides no built-in reporting capabilities.

Which Event ID shows file deletion?

Event ID 4660 is logged when a file or folder is permanently deleted from the system.

Conclusion

In this article, you have seen how to keep track of all files and folder activities on your Windows File Server using both native methods and Lepide File Server Auditor. Clearly the easier option, Lepide’s File Server auditing software can help you keep track of all the files and folders on your Windows File Servers.

Monitor file and folder activities with Lepide File Server Auditor
Fill in the rest of the form to
download the 20-day free trial
x