- Navigate to the required file share → Right-click it and select "Properties" → Switch to the "Security" tab → Click the "Advanced" button → Go to the "Auditing" tab → Click the "Add" button → Select Principal: "Everyone"; Select Type: "All"; Select Applies to: "This folder, subfolders and files"; Select the following "Advanced Permissions": "Change permissions and "Take ownership".
- Run gpmc.msc → Edit "Default Domain Policy" → Computer Configuration → Policies → Windows Settings → Security Settings.
- Go to Local Policies → Audit Policy:
- Audit object access → Define → Success and Failures
- Go to "Advanced Audit Policy Configuration" → Audit Policies → Object Access:
- Audit File System → Define → Success and Failures
- Audit Handle Manipulation → Define → Success and Failures
- Go to Event Log → Define:
- Maximum security log size to 1 GB
- Retention method for security log to “Overwrite events as needed”
- Open Event Viewer → Search the Security Windows Logs for the event ID 4663 with the "File Server" or "Removable Storage" task category and with the "Accesses: WRITE_OWNER" string. "Subject Security ID" will show you who changed the owner of a file or a folder.
- Run Netwrix Auditor → Navigate to “Search” → Click on “Advanced mode” if not selected → Set up the following filters:
- Filter = “Data source”
Operator = “Equals”
Value = “File Servers” - Filter = “Details”
Operator = “Contains”
Value = “Owner changed"
- Filter = “Data source”
- Click the “Search” button and review who changed file or folder owners.
To create an alert on file or folder owner changes:
- From the search results, navigate to “Tools” → Click “Create alert” → Specify the new alert’s name.
- Switch to the “Recipients” tab → Click "Add Recipient" → Specify the email address where you want the alert to be delivered.
- Click “Add” to save the alert.