Log-Manager

1.8

The script can cleanup and optionally archive old logs files.

This script can:

Delete files and folder trees older than X days.
Move files and folder trees to another location, after X days.
Archive files and folder tress as a ZIP file, after X days.

Please note: to send a log file using ssl and an SMTP password you must generate an encrypted
password file. The pas
The script can cleanup and optionally archive old logs files.

This script can:

Delete files and folder trees older than X days.
Move files and folder trees to another location, after X days.
Archive files and folder tress as a ZIP file, after X days.

Please note: to send a log file using ssl and an SMTP password you must generate an encrypted
password file. The password file is unique to both the user and machine.

The command is as follows:

$creds = Get-Credential
$creds.Password | ConvertFrom-SecureString | Set-Content c:\foo\ps-script-pwd.txt

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Log-Manager

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Mike Galvin Contact: mike@gal.vin twitter.com/mikegalvin_

Copyright

(C) Mike Galvin. All rights reserved.

Owners

Tags

Log Manager Cleanup MDT Microsoft Deployment Toolkit IIS Internet Information Services

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
1.8 (current version) 66 9/4/2019