This contains a power-shell script to disable, break, or restore windows update.
- Save RemoveWindowsUpdate.ps1 to your computer.
- Open an administrator powershell window.
- Navigate to where the script is saved. (cd C:\my_path\yada_yada)
- Run the script. (.\RemoveWindowsUpdate.ps1)
What each option does.
- Disable: This will disable BITS / wuauserv on start-up and it will stop the service. It will also move/rename qmgr.dll and wuaueng.dll.
- Renable: This will revert what the disable option did.
Destroy: This will completly remove qmgr.dll and wuaueng.dll aswell as remove the windows update service completely.- Destroy: At the moment this function only removes the wuauserv service. It will keep the .dll files in "C:\GHTemp\SystemFiles\WindowsUpdate", As you will need qmgr.dll for bits to work.
- The .dll files for windows update and bits are moved to "C:\GHTemp\SystemFiles\WindowsUpdate". If this directory is removed after disabling windows update, You will be unable to restore windows update.
- I would highly recommend making a restore point before running this script.
- If it complains about script policy you can
ether use this tool "https://github.com/Buddster124/Powershell-Execution-Policy-Changer" or you canturn on script bypass with the following command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine". You can revert this change after running the script by doing the following command "Set-ExecutionPolicy -ExecutionPolicy Default -Scope LocalMachine". - If SFC is ran on the machine you will have to rerun this script as the SFC utility will readd the files.
- Create a GUI For the script and pack it into an exe.