Write-Host "Preparing to clean WSUS Server of obsolete computers, updates, and content files." The code I currently have at the end of the script is here: Get-WsusServer 10.1.1.25 -PortNumber 8530 | Get-WsusUpdate -Classification All -Approval Unapproved -Status FailedOrNeeded | Approve-WsusUpdate -Action Install -Target $ComputerTarget -Verbose I would like to prompt 'Press 'Enter' to continue with removal or any other key to stop' before the cleanup stage to give people the option to not run it. I have a script I am using to automate WSUS processes, and the last stage of it goes on to remove all old/unnecessary files/objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |