Hey Guys
I have the bare bones of a script below . What i want it to do is
(1) Check from a list called servers.txt
(2) Check is a particular service is running
(3) If it's not then start it
(4) Echo the results to a file called results.txt
net start | find "servicename" > nul 2>&1
if not .%errorlevel%.==.0. goto startservice
goto skip
:startservice
net start "servicename"
echo service restarts @ %date% %time% >> C:\results.txt