@echo off echo. echo. echo HUNGNP18@FPT.COM echo. echo. :menu cls echo. echo Automatic Updates Controller echo. echo 1. Enable Automatic Updates echo 2. Disable Automatic Updates echo 3. Exit echo. set /p choice=Select an option (1/2/3): if "%choice%"=="1" goto enable if "%choice%"=="2" goto disable if "%choice%"=="3" exit goto menu :enable echo Enabling Automatic Updates... rem Enable Windows Update service sc config wuauserv start= auto net start wuauserv rem Set Automatic Updates in Registry reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 0 /f echo Automatic Updates have been enabled. pause goto menu :disable echo Disabling Automatic Updates... rem Disable Windows Update service net stop wuauserv sc config wuauserv start= disabled rem Disable Automatic Updates in Registry reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f echo Automatic Updates have been disabled. pause goto menu