Auditing will, when possible, extract the user who created, deleted or changed a file from local or remote computers.
The success of this relies on proper security configuration of the computer and folder as well as administrator rights for the user running ShareWatcher.
Windows does not record which user caused the file event that ShareWatcher reports. To name the user, ShareWatcher looks in the Windows Security log for the most recent record of someone opening that file or folder, in the few seconds around the event. That gives the right person in the everyday case - one person saving, renaming or deleting a file - but it has limits worth knowing before you rely on the User Name column:
If another program or person opens the file within a second or so of the change - antivirus scanning it, a search indexer or backup reading it, someone previewing it, or a second ShareWatcher folder watching the same location for another event type - that account can be reported instead of the person who made the change. Windows' own services can be one of them: they appear as the computer's name followed by $, for example FILESERVER$. For Accessed events, two people opening the same file at the same moment cannot be told apart.
For an item directly in the top folder of a share or drive, or one reached through a folder link on the audited computer (a junction or mount point), only the name can be compared. A change moments earlier by someone else to an item of the same name elsewhere on that computer can be reported instead.
Computer Name is the computer whose Security log was read - "Local Computer" or the audited server - not the PC the person was using. When no record is found, the User Name reads Timeout (Suspect Folder Not Audited). When the log cannot be read, it reads Error Finding User (...) with the reason - for example when the account used for a remote computer has no permission to read its Security log. Each audited event also waits about a second for Windows to make its record readable (up to three seconds when there is none), and Time is when the event was logged, after that wait. Changes made together are looked up one after another, so the later rows of a large copy or delete are logged further behind their changes - see Performance.
Treat the User Name as a strong indication rather than proof. Where it matters, confirm it from the Windows Security log on the audited computer itself.
Auditing comes with a Server licence or above. Auditing a remote computer additionally uses Remote Monitoring, which comes with an Enterprise licence, as does the ... button that opens the Computers window. See Licensing.
Auditing is available for all eight Live Monitoring event types: New, Deleted, Renamed, Edited, Accessed, Attributes, Security and Size.
When adding or editing a folder, an Audit choice is offered. "Not Audited" is the default option, with "Local Computer" and your pre-configured Remote Computers to choose from.
The ... button beside the list opens the Computers window, where remote computers are added and maintained.
One entry in the list is a prompt rather than a computer: <Remote Computers> marks where your saved remote computers are listed.
The Auditing tab of the folder window, with the computer list open and the "..." button to its right.
Auditing works with User Account Control on, which keeps that machine protected against every program running on it. Give the remote computer an Event Log Readers account, as Account Access recommends, and UAC stays exactly as it is. The one related setting is LocalAccountTokenFilterPolicy, and it applies only when you choose a local administrator account instead.
Open Local Security Policy either from Control Panel...
Local Security Policy in the Administrative Tools folder of Control Panel.
...or open a command prompt and type, "secpol.msc".
Edit the Audit Policy as shown below. Under Local Policies › Audit Policy, open Audit object access and tick Success.
Audit object access, with Success ticked, in Local Policies › Audit Policy.
NOTE: You may appear to have successfully configured your computer as shown above but reopen the Audit Policy to be sure it has saved. Reasons for not saving or working could be related to you not having Domain Administrator rights, your Security Policy being controlled by another Group Policy or it could be related to the scenario discussed on this Microsoft Support Page. It is important that this process above be completed successfully for Auditing to work. Following the Folder Configuration below alone will not provide user auditing.
Allow "Remote Event Log Management" and "Remote Event Monitor" through the firewall. In Windows Defender Firewall, open Allow an app or feature through Windows Defender Firewall, click Change settings and tick both entries for the profile you are using, as shown below. On a server you can add the same rules with the New Inbound Rule wizard instead - see Remote Monitoring › Configuration.
Remote Event Log Management and Remote Event Monitor, both ticked in the allowed apps list.
Make sure the Windows Event Log service is running. ShareWatcher reads the event log through that service, so it is the only one auditing needs.
This step applies only when the account you saved for the remote computer is a local administrator. An account in that computer's Event Log Readers group, or a domain account, works as it is - and because this setting lowers the machine's protection, one of those two is the better choice wherever you can use it.
If you are in a Workgroup (not a Domain) and using a local administrator account, Windows strips administrative privileges from remote connections by default.
On the target machine, you can tell Windows to stop "filtering" the administrator token for remote requests:
Your Remote Computer is now ready to audit file events.
The following steps must be completed for any folder selected for Audit:
Step 1. On the folder's Properties window, open the Security tab and click Advanced.
Step 2. In Advanced Security Settings, open the Auditing tab and click Continue.
Step 3. With the Auditing entries list shown, click Add.
Step 4. In the Auditing Entry window, click Select a principal.
Step 5. In the Select User or Group dialog, click Advanced.
Step 6. Click Find Now to list the users and groups on the computer.
Step 7. Select the group to audit from the search results - Administrators in this example.
Step 8. The chosen group is filled into the object name box. Click OK.
Step 9. Back in the Auditing Entry window, set Type to Success and Applies to to This folder, subfolders and files, then tick every basic permission.
...and click OK on each dialog until you're back at the folder view.
On the local computer, the user running ShareWatcher needs to be an administrator.
For a remote computer, ShareWatcher reads that computer's Security log as the account entered for it in the Computers window. Membership of the remote computer's Event Log Readers group gives the account exactly that, so it can stay an ordinary user - see Account Access. An administrator account reads the log as well; a local one other than the built-in Administrator needs LocalAccountTokenFilterPolicy set first. Setting up the audit policy and the folder auditing above takes an administrator on the remote computer, once.
The Log Information window, reporting the Last Log Read Delay for Auditing.
Auditing adds a Windows Event Log lookup to every file event reported, so the folder being audited sets the pace. A folder at the root of a drive such as C:\, in a Windows system folder, or at the top of a user profile can report many thousands of events an hour, and ShareWatcher asks you to confirm before Auditing is switched on for one. Audit the folder you need the user names for, and the delay stays small - see Choosing the Folder.
If you are experiencing long delays between file events and a logged entry then it may be that the computer being monitored with Auditing turned on is heavily utilised. Click the Info button (New Files / Deleted Files) for insight into this possibility. If this is adversely affecting the performance then please contact support@thecodeline.com for advice on how to customise the Event Log Search for your environment.