Wsus-Maintenance

20.3.20

Runs the built-in maintenance/clean up routine for WSUS.
The device that the script is being run on must have the WSUS management tools installed.

To send a log file via e-mail using ssl and an SMTP password you must generate an encrypted password file.
The password file is unique to both the user and machine.

To create the password file run this command as the user
Runs the built-in maintenance/clean up routine for WSUS.
The device that the script is being run on must have the WSUS management tools installed.

To send a log file via e-mail using ssl and an SMTP password you must generate an encrypted password file.
The password file is unique to both the user and machine.

To create the password file run this command as the user and on the machine that will use the file:

$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 Contact: mike@gal.vin / twitter.com/mikegalvin_ and also contribution from ideas@habs.homelinux.net

Copyright

(C) Mike Galvin. All rights reserved.

Owners

Tags

WSUS Windows Server Update Services Maintenance Clean up

Functions

Get-DateFormat Write-Log

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
20.3.20 (current version) 277 3/20/2020