Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
You can use the commands net start <service name here> for some services or sc <service name here> start
Additionally, you can write a batch file that can start and stop services of your choice, for instance this batch file I wrote turns on/off windows update services through a menu. You're free to use this and manipulate anyway you choose to get an understanding of how it works. Just remember to name the file with a .bat or .cmd extension.
Good luck.
@echo off
:: Colors are 0=Black, 1=Blue, 2=Green, 3=Aqua, 4=Red, 5=Purple, ::6=Yellow, 7=White, 8=Gray, 9=Light Blue, A=Light Green, B=Light Aqua, C=Light Red, D=Light Purple, E=Light Yellow, F=Bright White
::Ex. To make a blue background with red text: Color 14
:MainMenu
Color 03
echo 1. Turn Windows Update On
echo 2. Turn Windows Update Off
echo 3. Exit
echo.set /p choice=Please choose a number:
IF NOT '%choice%'=='' set choice=%choice:~0,1%
IF '%choice%'=='1' GOTO On
IF '%choice%'=='2' GOTO Off
IF '%choice%'=='3' GOTO Exit
echo "%choice%" is not valid please try again
cls
GOTO :MainMenu:On
Color 09
sc config wuauserv start= auto
sc config BITS start= autosc start wuauserv
sc start BITS
cls
echo.Windows Updates are Enabled
cd C:\Program Files\Internet Explorer
start iexplore.exe "http://www.windowsupdate.com"
echo.
GOTO :MainMenu:Off
Color 0C
sc stop wuauserv
sc stop BITSsc config wuauserv start= disabled
sc config BITS start= disabled
cls
echo Windows Updates are Disabled
echo.
GOTO :MainMenu:: This part is optional
:Exit
Color 0A
cls
echo All updated now!
echo Awesome! :)
echo.
pause
exitGreg

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |