Quantcast
Channel: Windows Server General Forum forum
Viewing all articles
Browse latest Browse all 24879

How to delete event logs automatically from C:\Windows\System32\winevt\Logs folder

$
0
0

Hi, I have enabled archive option for my windows logs in the event viewer. The archive logs are growing very fast and is taking up a lot of disk space. Anyone knows is there a way to delete the archive logs automatically so that only a few days are retain?

I tried to create a batch file but it cannot move or delete any files from that folder. Somehow that folder permissions are different from the rest.

Is it possible?


Viewing all articles
Browse latest Browse all 24879


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>