Skip to main content

Enable Advanced Windows Security Auditing

Summary

Advanced Windows Security Auditing is a feature in Microsoft Windows that allows users to monitor and record events related to security. By enabling this feature, users can track and analyze security-related events in their systems. However, if this feature is not fully enabled, some security events may not be captured, leaving the system vulnerable to security threats.

The remote monitor will periodically check the system's security settings and trigger an alert on an endpoint if Advanced Windows Security Auditing is not fully enabled.

Fully enabled Advanced Windows Security Auditing

Details

Suggested "Limit to": Windows Machines
Suggested Alert Style: Once
Suggested Alert Template: Enable Advanced Windows Security Auditing

Script Enable Advanced Windows Security Auditing [Globals, Autofix] must be imported before creating the alert template.

Insert the details of the monitor in the table below.

Check ActionServer AddressCheck TypeExecute InfoComparatorIntervalResult
system127.0.0.1Run FileSee BelowRegex Match86400^OK$

Execute Info:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "$ErroractionPreference= 'SilentlyContinue';$Auditing = (auditpol /get /category:'Logon/Logoff')[4..30];$psout = @(); foreach ($Audit in $Auditing) {if($Audit -NotMatch 'Success and Failure|^\s*$') { $psout += $Audit}}; return $psout"

Dependencies

Enable Advanced Windows Security Auditing [Globals, Autofix]

Target

Managed Windows Servers and Workstations