Services start with command line

March 16, 2009 at 01:54:38
Specs: Windows XP
how can i start services with command line

See More: Services start with command line

Report •

March 16, 2009 at 05:27:03
If you want to open the window that list all the services, then type --- services.msc

Report •

March 16, 2009 at 22:22:18
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


Color 03

echo 1. Turn Windows Update On
echo 2. Turn Windows Update Off
echo 3. Exit

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
GOTO :MainMenu


Color 09

sc config wuauserv start= auto
sc config BITS start= auto

sc start wuauserv
sc start BITS
echo.Windows Updates are Enabled
cd C:\Program Files\Internet Explorer
start iexplore.exe ""
GOTO :MainMenu


Color 0C

sc stop wuauserv
sc stop BITS

sc config wuauserv start= disabled
sc config BITS start= disabled
echo Windows Updates are Disabled
GOTO :MainMenu

:: This part is optional


Color 0A

echo All updated now!
echo Awesome! :)


Report •

Related Solutions

Ask Question