How to Enable "Application: Specify the maximum log file size (KB)" through registry key

2.8k views Asked by At

There is an option in gpedit.msc to enable "Application: Specify the maximum log file size "

Computer Configuration\Policies\Administrative Templates\Windows Components\Event Log Service\Application\Specify the maximum log file size (KB)

But I wan t to enable from registry key. How can I enable?

1

There are 1 answers

2
Lahiru Jayakody On BEST ANSWER

Create a REG_DWORD type key with name MaxSize having log size (KB) as the value in following path.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\EventLog\Application

OR

Save text file containing following and save as any_name.reg. Double click to apply. Here 00000400 is the log file size in hexadecimal. (This is a windows 8 registry file)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\EventLog\Application]
"MaxSize"=dword:00000400

Delete above register key to disable.

group policy edit - registry mapping