Skip to content

JensGJ/LogUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogUtils

Powershell Module to work with log files

Installation

LogUtils may be installed from PSGallery

Install-Module -Name LogUtils

Usage

# Move .log files from C:\Logs to C:\Archive, adding a default timestamp to the file name
Backup-Logfile -logPath "C:\Logs" -archivePath "C:\Archive\"

# Remove .log files that haven't been modified in the last 10 days from C:\Archive
Remove-Logfile -logPath -archivePath "C:\Archive\" -numberofDaystoKeepFiles 10

About

Powershell Module to work with log files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published