Wsus-Maintenance

1.7

Runs the maintenance/clean up routine for WSUS.

This script will:

Run the WSUS server clean up process, which will delete obsolete updates, as well as declining expired and superseded updates.
It can also optionally create a log file and email the log file to an address of your choice.

Please note: to send a log file using ssl and an SMTP password you must generate
Runs the maintenance/clean up routine for WSUS.

This script will:

Run the WSUS server clean up process, which will delete obsolete updates, as well as declining expired and superseded updates.
It can also optionally create a log file and email the log file to an address of your choice.

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 Wsus-Maintenance

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 twitter.com/mikegalvin_

Copyright

(C) Mike Galvin. All rights reserved.

Owners

Tags

WSUS Windows Server Update Services Maintenance Clean up

Functions

WsusMaintCmd

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
1.7 (current version) 79 4/23/2019