How to View History Log of Shared and Unshared Folders in Windows Server 2022

Abstract: Enable Advanced Audit Policy and folder-specific auditing in Windows Server 2022 to track file access events for troubleshooting shared and unshared folders.

Created: 2026-08-27 by
To view the history log of shared and unshared folders in Windows Server 2022, you must enable Advanced Audit Policy settings for File System auditing. This process records access events to specific directories, allowing administrators to track who accessed files and when. Without this configuration, Windows does not retain detailed access logs by default, making troubleshooting sharing issues difficult.

Enabling Advanced Audit Policy

The foundation of folder logging lies in the Group Policy Management Console. You need to configure the system to audit object access events. Open the Group Policy Management tool on your domain controller or local server. Navigate to the policy you wish to edit, typically Default Domain Policy for a domain environment or Local Security Policy for a standalone server. Expand Computer Configuration, then Policies, and select Windows Settings. Click on Security Settings, followed by Advanced Audit Policy Configuration, and finally Audit Policies. Locate the setting named Audit File System. Double-click it to open the properties window. Check both the Success and Failure boxes to ensure all access attempts are recorded. This step is critical because without enabling the global audit policy, no file system events will be generated regardless of subsequent folder-specific configurations. After applying these changes, you must update the group policy on the target server. Open a command prompt with administrative privileges and run the command gpupdate /force. This ensures that the new security policies are immediately active on the server. If you are managing multiple servers, consider using Group Policy Preferences or scripts to distribute these settings efficiently across your infrastructure. For broader context on maintaining server health, you might find our guide on Troubleshooting Windows Server helpful for general diagnostic procedures.

Configuring Folder-Specific Auditing

Enabling the global policy is only half the solution. You must explicitly tell Windows which folders to monitor. Navigate to the shared folder you want to track using File Explorer. Right-click the folder and select Properties. Switch to the Security tab and click the Advanced button near the bottom of the window. In the Advanced Security Settings dialog, go to the Auditing tab. Click the Add button to create a new audit entry. In the Select User or Group field, type Everyone to capture access from all users, or specify particular groups like Domain Users if you prefer granular control. Click Check Names to validate the selection, then click OK. Back in the Auditing Entry window, configure the types of access to audit. Ensure that Full Control, Read, and Write are checked under "Basic permissions" or manually select the corresponding advanced permissions. Crucially, check both Success and Failure to record successful accesses and denied attempts. Click OK to save the entry. Repeat this process for any other shared folders requiring monitoring. This explicit configuration overrides the default behavior and directs the operating system to log events specifically for these paths.

Locating and Interpreting Logs

Once auditing is configured, data begins accumulating in the Windows Event Viewer. Open Event Viewer from the Start menu. Expand Windows Logs and select Security. The logs are dense, so filtering is essential. Right-click the Security log and choose Filter Current Log.... In the filter window, locate the field labeled All Event IDs. Enter 5140 for share access events (when a user connects to the shared folder) or 4663 for file-level access events (when a user opens, reads, or writes to a file within the folder). You can also filter by the specific file path if needed, though this requires more complex XML queries. Click OK to apply the filter. Each event provides detailed information. Look at the Description field for the account name, IP address, and the specific action performed. The Subject section shows who initiated the request, while the Object section details the target file or folder. Understanding these fields allows you to pinpoint unauthorized access or troubleshoot permission errors. If you encounter connectivity issues alongside access problems, reviewing network diagnostics may be necessary, such as those discussed in our article on Can't Ping AWS Site-to-Site VPN Windows Server Customer Gateway: Troubleshooting Guide.

Managing Log Growth and Performance

Continuous auditing generates significant log data, which can fill up the Security log quickly and impact performance. It is vital to implement log rotation and retention policies. In Event Viewer, right-click the Security log again and select Properties. Set a maximum size limit, such as 500 MB or 1 GB, depending on your storage capacity. Choose whether to archive the log when full or overwrite older events. For long-term analysis, consider exporting logs to a centralized logging server using Windows Event Forwarding or a third-party SIEM solution. This prevents local log tampering and allows for better correlation with other security events. Regularly review these logs to identify patterns of misuse or configuration drift. Proper management ensures that your auditing strategy remains sustainable and effective over time.

Frequently Asked Questions

Why can't I see the Auditing tab in Folder Properties?

The Auditing tab appears only if the NTFS volume supports auditing and if you have administrative permissions. Ensure you are running File Explorer as an administrator and that the drive is formatted with NTFS. If the tab is missing, verify that the Advanced Audit Policy has been enabled via Group Policy.

Does auditing shared folders affect server performance?

Minimal impact occurs during normal operations, but heavy write loads combined with extensive auditing can increase CPU and disk I/O usage. To mitigate this, limit auditing to critical folders rather than entire drives and optimize your log retention policies to prevent excessive disk consumption.

How do I stop auditing a specific folder?

To remove auditing, return to the folder's Properties > Security > Advanced > Auditing tab. Select the existing audit entry and click Remove. Confirm the removal. Note that removing the entry stops future logging but does not delete previously recorded events from the Event Viewer.

What is the difference between Event ID 5140 and 4663?

Event ID 5140 logs network share access, indicating when a user connects to the shared resource itself. Event ID 4663 logs file-level access, recording actions like opening, reading, or writing individual files within that share. Use 5140 for broad access monitoring and 4663 for detailed file activity tracking.

Can I audit folders on a workgroup server without Active Directory?

Yes, you can configure auditing on standalone servers using Local Security Policy instead of Group Policy. The process remains identical: enable Audit File System in Local Security Policy and configure folder-specific auditing via NTFS permissions. However, you cannot centralize logs easily without additional tools.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More