Skip to content

Instantly share code, notes, and snippets.

@Staubgeborener
Created February 11, 2022 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Staubgeborener/f1f9f33ba68743061848a3c994c3cfeb to your computer and use it in GitHub Desktop.
Save Staubgeborener/f1f9f33ba68743061848a3c994c3cfeb to your computer and use it in GitHub Desktop.
remove KB5009543 (win10) and KB5009566 (win11) - broken ike vpn among other things
#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