Created
February 11, 2022 10:03
-
-
Save Staubgeborener/f1f9f33ba68743061848a3c994c3cfeb to your computer and use it in GitHub Desktop.
remove KB5009543 (win10) and KB5009566 (win11) - broken ike vpn among other things
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
#get rid of broken KB5009543 (win10) and KB5009566 (win11) - broken ike vpn | |
$win10 = wmic qfe list full /format:table | Select-String -Pattern 'KB5009543' | |
if($win10){ | |
#win10 update installed, lets remove it | |
WUSA.exe /uninstall /KB:5009543 | |
} else { | |
#win10 update not installed, check win11 | |
$win11 = wmic qfe list full /format:table | Select-String -Pattern 'KB5009566' | |
if($win11){ | |
#win11 update installed, lets remove it | |
WUSA.exe /uninstall /KB:5009566 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment