Giter VIP home page Giter VIP logo

windows-update-disabler's Introduction

Windows Update Disabler

โšก The one-click way to disable auto updates for good, without leaving leftover stuff running in the background.

Warning

Before running this script, ensure that Windows is fully updated and not currently installing or downloading updates! Interrupting an update could result in breaking your Windows installation!

How to Use

Simple!

  1. Clone or Download:

    • Clone this repository using git clone https://github.com/tsgrgo/windows-update-disabler.git or download it as a ZIP file and extract it.
  2. Check for Active Updates:

    • Ensure there are no updates currently being installed. Navigate to Settings > Update & Security > Windows Update and verify.
  3. Run the Script:

    • Execute disable updates.bat. This will disable automatic Windows updates.
  4. Re-enable Updates (Optional):

    • If you need to allow automatic updates again, run enable updates.bat. This is a complete inverse function of disable updates.bat and will undo all the changes it did.

How to Update Manually

Regular updates are recommended for security. To update manually:

  1. Enable Updates:

    • Run enable updates.bat to re-enable Windows Update.
  2. Perform Updates:

    • Navigate to Settings > Update & Security > Windows Update and install available updates.
  3. Disable Updates Again:

    • After updating, run disable updates.bat again to disable automatic updates.

Using the Update Service Temporarily

Some applications, like Microsoft Store, depend on the Windows Update service. To temporarily enable the service:

  1. Enable Update Service:

    • Run use update service.bat to re-enable the Windows Update Service.
  2. Use Dependent Applications:

    • You can now use applications that require the update service.
  3. Disable Update Service Again:

    • Once done, run disable updates.bat to disable the update service again.

What It Does

The script performs the following actions to disable automatic updates:

  • Disables the Windows Update Service (wuauserv).
  • Disables the Update Orchestrator Service (UsoSvc).
  • Disables the Windows Update Medic Service (WaaSMedicSvc).
  • Disables all update-related scheduled tasks.
  • Applies registry changes to prevent auto-updates.

Why is PsExec Needed?

Some of the services and tasks involved are protected from user accounts, and they require elevated system privileges to be modified. PsExec allows the script to run commands with the necessary permissions to bypass these restrictions.

PsExec is part of the official Sysinternals suite from Microsoft. More info: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

windows-update-disabler's People

Contributors

tsgrgo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-update-disabler's Issues

Have you even considered and taken care of such cases where the path (`'%0'`) could contain spaces somewhere ?? Like in `%USERNAME%` ??

As I specified in the Issue title, there are cases where '%0' could have spaces in the path anywhere like in %USERNAME%(Vivek Shah), and you have clearly not handled those cases while passing the parameter as '%0' which breaks the script in those cases and throws given error:

The term 'C:\Users\Vivek' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1

See this Stackoverflow Question that I had to ask due to this blocking issue..

Can you atleast suggest any immediate fixes for this ??

Questions about this

Can this work on win 10 home? If yes, then create such file for disabling Defender's update too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.