Forum Discussion

archie1279's avatar
archie1279
Copper Contributor
Aug 20, 2020

script to compress exchange logs older than 1 day and delete that logs after compressed

Hi All

 

Im new member here

 

I need some help to script to compress exchange logs older than 1 day and delete that logs after compressed as W3SVC logs are filling up the disk everyday

1 Reply

  • this should work :-
    https://gallery.technet.microsoft.com/scriptcenter/Delete-IIS-Logs-Using-Task-1664095d
    just replace -2 with -1

Resources