1

Unfortunately the SC command isn't available on W2000 yet, so I cannot use it.

I'm trying to check if a service is running or not on a W2000 server, and if it is not running the script should be able to start the service.

How to do this on Windows 2000?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Christoph
  • 149
  • 3
  • 5
  • 12

1 Answers1

2
net start | find "yourservice"
if %errorlevel%==1 net start "yourservice"
Bali C
  • 30,582
  • 35
  • 123
  • 152