Applies to: Windows Server 2019, 2022 and 2025, subject to installed updates and feature availability.
Advanced audit subcategories provide granular security events. Enable only useful categories and size logs to retain the evidence required.
Security controls should be piloted, monitored and reversible through console access. Visit managed Windows VPS hosting for managed Windows VPS services.
Prerequisites
- Define monitoring and retention requirements.
- Forward critical events to a protected collector.
- Test event volume.
- Back up current audit policy.
Procedure
Step 1: Export current policy
Create a rollback file.
auditpol /backup /file:C:\Temp\audit-policy.csvStep 2: Review categories
List effective audit settings.
auditpol /get /category:*Step 3: Enable logon auditing
Record success and failure.
auditpol /set /subcategory:'Logon' /success:enable /failure:enableStep 4: Enable account-management auditing
Record identity changes.
auditpol /set /subcategory:'User Account Management' /success:enable /failure:enableStep 5: Configure GPO enforcement
Use Advanced Audit Policy Configuration in a domain GPO to prevent local drift.
Step 6: Validate forwarding
Generate controlled test events and confirm collection.
Verification
Read effective policy and recent security events.
auditpol /get /category:*
Get-WinEvent -FilterHashtable @{LogName='Security';Id=4624,4625,4720,4726;StartTime=(Get-Date).AddHours(-2)} -MaxEvents 50Rollback and recovery
Restore the captured policy with auditpol /restore and revert the governing GPO.
Security notes
Auditing without protected collection and review creates logs but not effective detection.
Official references
For a hosted environment with setup and onboarding, explore our managed Windows VPS plans.
How to Check and Update Microsoft Defender Antivirus on Windows Server
How to Check and Update Microsoft Defender Antivirus on Windows ServerApplies to: Windows Server 2019, 2022 and 2025, subject to installed…
How to Create a Scoped Windows Defender Firewall Rule with PowerShell
How to Create a Scoped Windows Defender Firewall Rule with PowerShellApplies to: Windows Server 2019, 2022 and 2025, subject to installed…
How to Encrypt a Windows Server Data Volume with BitLocker
How to Encrypt a Windows Server Data Volume with BitLockerApplies to: Windows Server 2019, 2022 and 2025, subject to installed updates and…
How to Deploy Windows LAPS for Local Administrator Password Management
How to Deploy Windows LAPS for Local Administrator Password ManagementApplies to: Windows Server 2019, 2022 and 2025, subject to installed…
How to Configure Attack Surface Reduction Rules in Audit Mode
How to Configure Attack Surface Reduction Rules in Audit ModeApplies to: Windows Server 2019, 2022 and 2025, subject to installed updates…