GPO does not have out of the box ADMX/ADML file for PowerShell Event logs. If you can build your own ADML/ADMX or find some template, that can solve your problem.
How to set PowerShell eventlog max size in a GPO
Hi there.
I need to set the PowerShell event log in Windows max size in a GPO.
I allready got the Eventlog Max size for: Application, Security, Setup, and System down in the: "Windows Components/Event Log Services" area
My google foo has run out for this one.
Please help me out wise people :-)
Kind regards
Thomas....
2 answers
Sort by: Most helpful
-
-
Limitless Technology 39,711 Reputation points
2021-09-29T13:46:29.413+00:00 Hi there,
Can you give this a try?
Open the registry editor and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\<log_name>.
For example: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Directory Service
Set the MaxSize to the required decimal value (in bytes).
If the reply is helpful, please Upvote and Accept it as an answer