Created
January 31, 2025 17:38
-
-
Save Borgquite/8fc399bfa0a163d9f7809551d01ca031 to your computer and use it in GitHub Desktop.
Fix issue installing updates on WSUS servers per https://www.reddit.com/r/sysadmin/comments/1hy8msg/problem_installing_update_on_server_2022/
This file contains hidden or 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
(Get-Content "$env:ProgramFiles\Update Services\Database\VersionCheck.sql") -replace "(^DECLARE @scriptMinorVersion\s* int = \(51\)$)","DECLARE @scriptMinorVersion` ` ` ` ` int = (11)" | Set-Content "$env:ProgramFiles\Update Services\Database\VersionCheck.sql" -Encoding ASCII |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment