PowerShell Utility: Reset-Logs
What is Reset-Logs Reset-Logs is a small utility that takes a log file (that must not be locked) and, [Optionally] Moves it into an archived state under a different name [Optionally] Emails it to a particular address Recreates it with an [Optional] Header History of Reset-Logs Initially Reset-Logs was part of the UPS Monitoring utility ( https://github.com/chribonn/UPSMonitor ) but has now been extracted into its own repository because it can be used standalone in other solutions that would benefit from log file recycling. The most up-to-date version of this utility can be downloaded from https://github.com/chribonn/UPSMonitor PowerShell 7 Reset-Logs was tested on PowerShell 7. This version of PowerShell does not come installed by default on Windows. Information on how to install this version is available on the Microsoft page Installing PowerShell on Windows Configure PowerShell execution policy if you get a PSSecurityException error If you get an error when you ex...