Scripts/Stop-PoshWSUSDownload.ps1
function Stop-PoshWSUSDownload { <# .SYNOPSIS Cancels all current WSUS downloads. .DESCRIPTION Cancels all current WSUS downloads. .NOTES Name: Stop-PoshWSUSDownload Author: Boe Prox DateCreated: 24SEPT2010 .LINK https://learn-powershell.net .EXAMPLE Stop-PoshWSUSDownload Description ----------- This command will stop all updates being downloaded to the WSUS server. #> [cmdletbinding()] Param() Process { #Cancel all downloads running on WSUS If ($pscmdlet.ShouldProcess($($wsus.name))) { $wsus.CancelAllDownloads() "Downloads have been cancelled on {0}." -f $wsus.name } } } |