Hello Mr Cheese,
Thank you for posting in Microsoft Community forum.
To track which computer has accessed a shared folder using Security Auditing in Windows, you need to enable auditing on both the folder and on the system where the shared folder resides.
Here are the steps:
Step 1: Enable Object Auditing via Group Policy
- Press
Win + R
, typegpedit.msc
, and press Enter to open the Local Group Policy Editor. - Navigate to
Computer Configuration
->Windows Settings
->Security Settings
->Local Policies
->Audit Policy
. - Double-click
Audit Object Access
. - Check both
Success
andFailure
options. ClickApply
, thenOK
.
Step 2: Enable Auditing on the Shared Folder
- Navigate to the folder you want to audit.
- Right-click the folder and select
Properties
. - Go to the
Security
tab and clickAdvanced
. - In the
Advanced Security Settings
window, go to theAuditing
tab and clickAdd
. - Click on
Select a Principal
and typeEveryone
. ClickCheck Names
and thenOK
. - In the
Auditing Entry
window, check theSuccessful
andFailed
boxes for the types of access you want to audit (e.g.,Read
,Write
, etc.). - Click
OK
, thenApply
, andOK
to close all dialog boxes.
Step 3: View the Security Logs
- Press
Win + R
, typeeventvwr.msc
, and press Enter to open Event Viewer. - Navigate to
Windows Logs
->Security
. - Look for
Event ID 4663
which indicates that an object (the folder) was accessed. - Click on the event and review the details to see which user and computer accessed the folder.
Notes:
You need administrative privileges to perform these actions. Ensure that your system's event logging is adequately sized to handle potentially large numbers of events, especially if auditing multiple objects and types of access.
If you are in a domain environment, you may need to modify Group Policy at the domain level rather than the local computer.
You can check the name as below:
I am not sure if it is server that shared the folder or the machine that the users access.
4663(S) An attempt was made to access an object. - Windows 10 | Microsoft Learn
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou