{"id":174,"date":"2011-01-04T03:04:00","date_gmt":"2011-01-04T03:04:00","guid":{"rendered":"https:\/\/belayclientstaging.zone\/securityeverafter\/2011\/01\/04\/how-do-you-do-auditpol\/"},"modified":"2011-01-04T03:04:00","modified_gmt":"2011-01-04T03:04:00","slug":"how-do-you-do-auditpol","status":"publish","type":"post","link":"https:\/\/securityeverafter.com\/how-do-you-do-auditpol\/","title":{"rendered":"How do you do, Auditpol?"},"content":{"rendered":"
What if there were an alternative to using the Local Security Policy to set the options needed to support of your security policy? Starting with Windows 7 and 2008 there is a new, perhaps even better way, Auditpol<\/a> that offers much more granularity.<\/p>\n The full explanation of this setting is:<\/p>\n Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings.<\/p>\n Windows Vista and later versions of Windows allow audit policy to be managed in a more precise way using audit policy subcategories. Setting audit policy at the category level will override the new subcategory audit policy feature. To allow audit policy to be managed using subcategories without requiring a change to Group Policy, there is a new registry value in Windows Vista and later versions, SCENoApplyLegacyAuditPolicy, which prevents the application of category-level audit policy from Group Policy and from the Local Security Policy administrative tool.<\/p>\n If the category level audit policy set here is not consistent with the events that are currently being generated, the cause might be that this registry key is set.<\/p>\n To enable this option, visit Local Security Policy –> Local Policies –> Security Options –> Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings. By default this option is not enabled. <\/p>\n Auditpol is strictly a command line<\/a> tool that is invoked by typing, you guessed it, Auditpol. It has several switches that allows you to display, set, clear, backup and restore these settings.<\/p>\n The best way to become comfortable with the use of auditpol is to try it out on a test system. <\/p>\n Steps:<\/u> Sure, this is nice, but what if you have more than one server?<\/p>\n Glad you asked.<\/p>\n The backup option can be used to export the Auditpol settings to a csv or txt file – Auditpol \/backup \/file:C:Windowspolicy.txt. This can be used to backup from one server and restore to another.<\/p>\n Take a look at the output file in a text editor. The first field is obviously the hostname. If you are comfortable with the security settings, simply replace the original server name with the new server name deploy the Auditpol settings. This will certainly save time over building each setting in the command line. It would save even more time by replacing the value of the hostname field with localhost. <\/p>\n With this change in place, the policy can be saved and then imported very quickly. To import the audit policy, enter the command – Auditpol \/restore \/file:C:Windowspolicy.txt. Now these granular security settings are applied without having to go through the meticulous steps via the command line. If you are using Group Policy, you can also it to deploy and enforce auditpol in your domain<\/a>. <\/p>\n I have not yet determined why the settings you make in Auditpol do not show up in the Local Security Policy. I did spend way too much time confirming these settings are not the same. Perhaps the answer is in the original phrase “override audit policy category settings”. <\/p>\n Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":" What if there were an alternative to using the Local Security Policy to set the options needed to support of your security policy? Starting with Windows 7 and 2008 there is a new, perhaps even better way, Auditpol that offers much more granularity. The full explanation of this setting is: Audit: Force audit policy subcategory […]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[10,11],"tags":[],"jetpack_publicize_connections":[],"yoast_head":"\n
0) Enable the Audit Setting above
1) Open the Command Prompt<\/a> as Adminstrator
2) Clear any existing settings with Auditpol \/clear<\/span>
3) Run the following command to view the current auditpol settings – Auditpol \/get \/category:*
4) Configure the settings that support your Security Policy
5) Run the following command to view the new Auditpol settings – <\/span>Auditpol \/get \/category:*<\/p>\n