Discussion Locked

Start/Stop all Services.

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can someone provide information on Win NT4.0.

I am looking for a way to start and stop all services from a BAT file.

If anyone knows a way to accomplish this, I would most appreciate the help.

5 replies

by nettek

You can use the NET START and NET STOP command line utilities. To find out which file is run to start a particular service, Run Regedt32 and navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
You will find the services here, and you can also find which file to use in conjunction with NET STOP and NET START.

I don't believe there is a way to automate this so that you can start and stop everything with one command. You will have to list them individually one-by-one. Be careful because many of them have dependencies. In other words, some of them rely on other services and they may have to be started and stopped in a particular order. You will find the dependencies under Services in Control Panel.

by parbo

Well there is no single command to sart and stop all services. What services runs on a system depends on the configuration. In your case you would need to take out some time and create a batch file with all the services that you want to stop or start (that will make it 2 batch files) net start "service" and net stop "service"

This discussion is closed to new replies.