T The Triage ManualTechnical Guides for IT Emergencies
P3 · Windows Server

Identify Who or What Deleted Files on Windows Server/Workstation — SACL Auditing with Event ID 4663/4660

Windows does not log file deletions by default. To identify the user, process, or service responsible for deleting files from a server or workstation, the 'Audit File System' subcategory must be enabled and SACLs configured on the target folder. Future deletions are then traceable via Security Event ID 4663 (DELETE access attempted) correlated with 4660 (object deleted) by Handle ID, exposing the Subject account, Process Name, and Object Name. Historical deletions prior to auditing being enabled cannot be recovered from logs and require VSS, backup, or third-party file activity monitor data.

Indicators

Likely causes

Diagnostic steps

  1. Check current file system audit policy: auditpol /get /subcategory:"File System"
    Determine whether any historical deletion events would have been captured
  2. Query existing Security log for prior deletion events on the affected path: Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4663,4660} -MaxEvents 1000 | Where-Object { $_.Message -match 'PATH\\TO\\FOLDER' } | Format-List TimeCreated, Id, Message
    Identify any already-logged deletions and the associated user/process before enabling new auditing
  3. Review the SACL on the parent folder: (Get-Acl -Path 'D:\Shares\Data' -Audit).Audit
    Confirm that delete operations are configured to be logged for the relevant principals
  4. Enumerate active SMB sessions and open files: Get-SmbOpenFile; Get-SmbSession
    Identify remote users currently connected to the share who may be deleting in real time
  5. Inspect scheduled tasks and recent process creation (Event 4688): Get-ScheduledTask | Where-Object {$_.State -eq 'Ready'}; Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4688} -MaxEvents 200
    Rule out automation, cleanup scripts, or suspicious processes as the cause
  6. Check Volume Shadow Copies for recoverable previous versions: vssadmin list shadows /for=D:
    Recover deleted data and correlate VSS snapshot timestamps with deletion window
  7. If real-time observation needed, launch Sysinternals Process Monitor with filter Operation=SetDispositionInformationFile or Operation=CreateFile and Detail contains 'Delete'
    Capture live deletions with full process tree and command line attribution

Resolution path

Prevention

Tools

References

windowsfile-serverauditingsecurity-logevent-4663event-4660saclforensicsdata-losssysmoninsider-threatincident-response