This script automates the process of disabling automatic restarts on your Windows system, particularly during system failures and Windows Updates. It requests administrative privileges, modifies registry settings related to Windows Update and automatic restarts, updates Group Policy, and restarts the Windows Update service.
-
Download Script:
- Download the script or exe: Disable_Auto_Restart.cmd or Disable_Auto_Restart.exe.
-
Run as Administrator:
- Click on the downloaded file (
Disable_Auto_Restart.cmd
) or (Disable_Auto_Restart.exe
) and run it. - When prompted, grant administrative privileges.
- Click on the downloaded file (
-
Follow Instructions:
- The script will display instructions and a countdown.
- After the countdown, it will update Group Policy, disable automatic updates, and restart the Windows Update service.
-
Configuration Completed:
- Once the script completes, your Windows system should have auto-restart disabled successfully.
-
Security Considerations:
- Disabling automatic updates can expose your system to security risks. Use this script with caution and consider enabling updates periodically for security purposes.
-
Administrative Privileges:
- Ensure that you run the file with administrative privileges for it to make the necessary changes.
-
Windows Update Service:
- The script stops and restarts the Windows Update service as part of the configuration.
-
Group Policy Update:
- The script forces an update of Group Policy to apply the changes.
-
Use at Your Own Risk:
- Understand the impact of disabling auto-restart and automatic updates on your system. Use the script at your own risk.
This script is provided under the MIT License. See the LICENSE file for more details.