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
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 :-)
Sign in to comment
Sort by: Most helpful
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