I have configured several avanced audit policy settings under:
Computer Configuration => Policies => Windows Settings => Security Settings =>
Advanced Audit policy Configuration => Audit Policies => ...
Also the following setting is set to "Enabled":
Computer Configuration => Policies => Windows Settings => Security Settings =>
Local Policies => Security Options => Audit: Force audit policy subcategory settings
(Windows Vista or later) to override audit policy category settings.
However none of the advanced audit settings is getting applied. Running
auditpol /get /category:*
shows all options set to "No Auditing". Also there are none of the deprecated audit policies set.
What surprises me, is that neither gpresult nor rsop.msc show up the "Advanced audit policy" category. What am I doing wrong here? I am running out of ideas. Thanks in advance for your input!
[1. Addendum]
Other settings configured in the same group-policy object are getting applied. So the common pitfalls can be ruled out.
The originally GPO contains MSS settings
Creating a new, empty GPO and only setting the advanced audit configuration items, make them appear on the target server (checked with auditpol). So there must be something wrong with the GPO itself.
[2. Addendum]
- Comparing both {GUID}\Machine\Microsoft\Windows NT\Audit\Audit.csv files with each other reveals the following difference. Note the double occurence of "audit".
Non working version of audit.csv:
,System,Audit Policy Change,{0CCE922F-69AE-11D9-BED3-505054503030},Success and Failure,,3
Working version of audit.csv:
,System,Audit Audit Policy Change,{0cce922f-69ae-11d9-bed3-505054503030},Success and Failure,,3
Whats going on here? Any compelling reasons to not edit this file manually?
I realize this is an older question, and that you resolved the issue a different way, however, the reason it wasn't working originally was due to "Audit: Force audit policy subcategory settings" being enabled. As explained in this article on Technet:
I solved it by the following procedure:
I have created the failing GPO from a template which already had set the advanced audit settings. I guess there was an internal mismatch of the GUIDs...
Old post but I just had and worked through the same problem and did not have success with the accepted solution.
@matze got me thinking about the backend of the Audit Policy process. I found the following article which laid out the process in wonderful detail (I highly recommend the read): https://blogs.technet.microsoft.com/askds/2011/03/11/getting-the-effective-audit-policy-in-windows-7-and-2008-r2/
In review, I found that the
%systemroot%\system32\grouppolicy\machine\microsoft\windows nt\audit\audit.csv
file was updating correctly but the%systemroot%\security\audit\audit.csv
file had a timestamp from years ago.In looking at the properties,
c:\windows\security\audit\audit.csv
was set to Read-Only which apparently was preventing the OS from updating the file.To resolve I did the following:
Auditpol /backup /file:<file>
to make a backup of the Auditpolauditpol /clear
to clear the AuditpolGpupdate /force
auditpol /get /category:*
to ensure everything was clearedGpupdate /force
auditpol /get /category:*
to ensure everything was set correctly againTo confirm the fix, I made a change to a setting in GPEDIT, gpupdate again, auditpol /get again. The change showed up correctly.
I just ran into the same problem. It turned out to be an order-of-operations issue. I set all of the advanced log settings and then set Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings to Enabled. While other settings clearly applied to the affected test system, the logging settings did not. They didn't appear in the Settings summary although they appeared in the actual editor.
I was puzzled about this until I worked through the process and the XML file (which was nearly empty). Settings are added to the file as they are made unless something else overrides the setting, like a master setting that is required to enable them. If that master setting is in another part of the GPO, the write-on-change process may not see the entire policy.
Solution: Go back to the advanced settings, disable one setting and click OK, then go back and re-enable it. The entirety of the logging settings will then appear. Close the editor. The GPO will go to affected systems on the next refresh, and will take effect the next reboot.
I recently had the experience of no Advanced Audit Policy settings applying on any GPOs, despite "Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings" being set to Enabled.
This was because the Default Domain Policy GPO folder didn't have an audit.csv file. This file should be located at:
\\corp.example.org\SYSVOL\corp.example.org\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\Audit\audit.csv
If you don't have this file, you can generate it by configuring any Advanced Audit Policy setting on the Default Domain Policy GPO and then immediately unconfigure it.