A little powershell script for windows 7 | 8 | 8.1 thant remove all things relative to windows10 upgrade.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Yorick Barbanneau 74045b5f83 $WINDOWS.~BT name was incorrect 3 年前
README.md Corrections, encore... 3 年前
launcher.cmd spelling and grammatical improvements 3 年前
remove-kb.ps1 $WINDOWS.~BT name was incorrect 3 年前

README.md

Remove-kb

A little powershell script to uninstall and hide some updates. I use it to remove unwanted Windows 10 upgrade. This is a really simple script just for my need, but I will propably improve it. This script needs Adminitrator’s rights.

There are two parts

  • launcher.cmd : a winbatch script to launch powershell one.
  • remove-kb.ps1 : the powershell script itself.

To add or remove uninstalled / hidden KB you nedd to modify $kbIDs variable.

Because I’m a Linux fan and this is my first try with powershell this script is really simple and could not work properly, burn your cat and cut your Little Pony head.

How?

This script kill GWX executable, then remove some Scheduled Task about GWX program, uninstall some KB with wusa.exe and hide it to prevent automatic reinstallation.

For removing GWX files, you’ll need to modify $admingroup and $yes variables according to your system locale with adminitrator and Y for english system

TODO

  • Add privilege elevation error when the script is not launched with Administrator’s rights
  • Add the possibility to use arguments when calling the script (then ps script could be call from another script)
  • Remove KB2976978 update (Windows say that it’s a “Required” one…)
  • Remove GWX Files before uninstalling KB (check remove_gwx_file branch)
  • Update the windows update list to hide kb that aren’t yet listed
  • Speed up hide_update
  • Tell me

License

Do what you want and feel free to offer me a beer :D