Blog | G5 Cyber Security

Audit SAM User Events in Windows 2012 R2

TL;DR

This guide shows you how to enable auditing for specific events related to user accounts (SAM users) in Active Directory on a Windows Server 2012 R2 domain controller. This helps track changes and potential security issues.

Auditing SAM User Events in Windows 2012 R2

  1. Open Group Policy Management
  2. On your domain controller, open Server Manager. Go to ToolsGroup Policy Management.

  3. Edit the Default Domain Controllers Policy
  4. In the Group Policy Management console, expand Forest: yourdomain.comDomains: yourdomain.com and right-click on Default Domain Controllers Policy. Select Edit.

  5. Navigate to Audit Settings
  6. In the Group Policy Management Editor, go to Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesAudit Policy.

  7. Configure Audit Object Access
  8. Double-click on Audit object access. Configure the following:

  • Configure Advanced Audit Object Access Settings
  • In the Advanced Security Settings window:

  • Configure Audit Directory Service Access
  • Double-click on Audit directory service access. Configure the following:

  • Configure Advanced Audit Directory Service Access Settings
  • In the Advanced Security Settings window:

  • Update Group Policy
  • Open Command Prompt as an administrator and run:

    gpupdate /force

    This forces a refresh of the group policy on all domain controllers.

  • View Audit Logs
  • The audit logs are stored in the Security event log. Open Event Viewer (Control PanelAdministrative ToolsEvent Viewer) and navigate to Windows LogsSecurity.

    Filter the Security log by Event IDs related to object access or directory service access. Common Event IDs include:

    Exit mobile version