Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Run this In-Script Configurator in the wumt wrapper script folder to test
- :: and please give your opinion.
- @echo off
- mode con cols=85 lines=12
- Title In-Script Configurator
- Color 1F
- ::::::::::::::::::::::::::::
- ::Windows Update Service Configurator
- Reg query "HKLM\SYSTEM\CurrentControlSet\Services\wuauserv" /v "Start" | find "4" >nul 2>&1
- if %errorlevel% == 1 goto wuenable
- ::disable windows update
- :wudisable
- ren "%~dp0wub.exe-backup" wub.exe >nul 2>&1
- timeout /t 2 /nobreak >nul 2>&1
- "%~dp0wub.exe" /d /p >nul 2>&1
- timeout /t 2 /nobreak >nul 2>&1
- cls
- echo ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ WUMT Wrapper Script Windows Update Service Configurator & echo.
- echo ^ ^ ^ ^ ^ ^ [44;93m---^>^>^> Windows Update Service is DISABLED and stopped ^(default^) ^<^<^<---[44;97m
- echo. & echo [E]nable Update Service to allow Windows Store.
- echo. & echo [C]ontinue script if above Update Service Status is okay...
- echo. & echo E[x]it script if you're just verifying or changing the update service status... & echo.
- CHOICE /C ECX /M "Your choice?:"
- if %errorlevel%==3 (exit)
- if %errorlevel%==2 (goto splash)
- cls
- echo. & echo Please wait while Windows Update Service is enabled...
- timeout /t 2 /nobreak >nul 2>&1
- ::enable windows update
- :wuenable
- ren "%~dp0wub.exe-backup" wub.exe >nul 2>&1
- timeout /t 2 /nobreak >nul 2>&1
- "%~dp0wub.exe" /e >nul 2>&1
- timeout /t 2 /nobreak >nul 2>&1
- ren "%~dp0wub.exe" wub.exe-backup >nul 2>&1
- timeout /t 2 /nobreak >nul 2>&1
- cls
- echo ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ WUMT Wrapper Script Windows Update Service Configurator & echo.
- echo ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ [44;93m---^>^>^> Windows Update Service is ENABLED ^(for Store^) ^<^<^<---[44;97m
- echo. & echo [D]isable Update Service and only allow to run during updates with script (default).
- echo. & echo [C]ontinue script if above Update Service Status is okay...
- echo. & echo E[x]it script if you're just verifying or changing the update service status... & echo.
- CHOICE /C DCX /M "Your choice?:"
- if %errorlevel%==3 (exit)
- if %errorlevel%==2 (goto splash)
- if %errorlevel%==1 (
- cls
- echo. & echo Please wait while Windows Update Service is disabled...
- timeout /t 2 /nobreak >nul 2>&1
- goto wudisable
- )
- ::::::::::::::::::::::::::::
- :splash
- echo The In-Script Configurator has finished.
- Press a key to exit...
- pause > nul
Add Comment
Please, Sign In to add comment