Last active
April 10, 2018 14:08
-
-
Save bryandam/19adef19d1e296b1fa391aa0e2ce67a6 to your computer and use it in GitHub Desktop.
SQL Query to Remove Obsolete Updates from WSUS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @update varchar( max ) | |
select @update = min( LocalUpdateID ) from spGetObsoleteUpdatesToCleanup | |
while @update is not null | |
begin | |
EXEC spDeleteUpdate @update | |
select @update = min( LocalUpdateID ) from spGetObsoleteUpdatesToCleanup | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment