@echo off
title Pause Windows Update until 2099
echo Applying Windows Update Pause Settings...
echo.
:: Create a temporary registry file
echo Windows Registry Editor Version 5.00 > pause_updates.reg
echo. >> pause_updates.reg
:: Apply the registry settings
reg import pause_updates.reg
:: Clean up the temporary file
del pause_updates.reg
:: Restart Windows Update service to apply changes
net stop wuauserv /y
net start wuauserv
echo.
echo Windows Updates have been paused until 2099!
pause
exit
How to Use This Script
1. Copy the script and paste it into Notepad.
2. Save it as Pause_updates_until_2099.bat (Make sure to select "All Files" in the "Save as type" dropdown).
3. Right-click Pause_updates_until_2099.bat and select "Run as administrator".
This will pause Windows Updates until December 31, 2099, restart the Windows Update service, and display a success message.