Avatar of tmlaugle
tmlaugle
 asked on

Set retention for Applications and Services logs in Windows 2008/2012 using the registry

I need to set the retention for one of the logs in the Applications and Services Logs section of Event Viewer for ALL my servers.  This means I need to do it via a preferences registry setting in group policy.

When I made the retention setting for the Windows logs, I was able to add a Value named Retention in the key for the log, for example:  HKLM\System\CurrentControlSet\Services\EventLog\Application --> Retention = 0 (REG_DWORD).  (Yes, I know I could have done this through Administrative Tools, I chose to do it through the registry.)

I know the location of the Applications and Services Logs in the registry:  HKLM\Software\Microsoft\Windows\CurrentVersion\WINEVT\Channels --> <name of the log>.  What I am trying to find out is the name of the value to add.  Will "Retention" work here, as it does for the Windows logs?  Or is there a different Value for these logs?  Any help will be much appreciated.
Windows Server 2008Windows Server 2012

Avatar of undefined
Last Comment
Seth Simmons

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Robin CM

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Seth Simmons

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Your help has saved me hundreds of hours of internet surfing.
fblack61