Wsus-Maintenance

21.12.8

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:\scripts\ps-script-pwd.txt

Show more

Installation Options

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

Install-Script -Name Wsus-Maintenance -RequiredVersion 21.12.8

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy 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

Owners

Copyright

(C) Mike Galvin. All rights reserved.

Package Details

Author(s)

  • Mike Galvin Contact: mike@gal.vin / twitter.com/mikegalvin_ / discord.gg/5ZsnJ5k and also contribution from ideas@habs.homelinux.net

Tags

WSUS Windows Server Update Services Maintenance Clean up

Functions

Get-DateFormat Write-Log

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
23.4.28 21,183 4/28/2023
23.3.21 500 4/10/2023
22.6.18 715 6/18/2022
22.5.28 28 6/14/2022
21.12.8.1 397 12/8/2021
21.12.8 (current version) 13 12/8/2021
20.3.20 1,121 3/20/2020
20.3.3 48 3/5/2020
1.8 215 9/4/2019
Show less