Event ID 5138 represents a security audit event generated by the Windows Security Reference Monitor when registry values are deleted from the system registry. This event is part of the Object Access audit category and requires explicit configuration through audit policies to function properly.
The registry serves as Windows' central configuration database, storing critical system settings, application configurations, and user preferences. When applications, services, or administrative tools delete registry values, Windows can track these modifications through the auditing subsystem. Event ID 5138 specifically captures value deletions, providing a complete audit trail of what was removed from the registry.
Each Event ID 5138 entry contains comprehensive information including the registry key path, the specific value name that was deleted, the security identifier (SID) of the account performing the action, the process name and ID responsible for the deletion, and precise timestamps. This detailed logging enables administrators to track configuration changes, investigate security incidents, and maintain compliance with regulatory requirements.
The event fires regardless of whether the deletion was performed through Registry Editor, PowerShell commands, Group Policy changes, application installations or uninstallations, or programmatic registry modifications. This comprehensive coverage ensures that all registry value deletions are captured when auditing is properly configured.