how the heck do i restart a service on the cmd line?

DJFuji

Diamond Member
Oct 18, 1999
3,643
1
76
I'm trying to restart a service that commonly fails but the command line doesnt seem to have a "net restart" command. Just stop and start. Is there something i'm missing? Do i have to manually stop and start it? You'd think that if the GUI allows you to restart, that the command line would too. Any ideas?
 

DJFuji

Diamond Member
Oct 18, 1999
3,643
1
76
i want to do it in batch script and i dont know how long it will take the service to stop.
 

skace

Lifer
Jan 23, 2001
14,488
7
81
if you queue up a net stop and then a net start they should wait for each one to finish and kick off without any additional timing. As long as you aren't using start commands.
 

Allanv

Senior member
May 29, 2001
905
0
0
Originally posted by: skace
if you queue up a net stop and then a net start they should wait for each one to finish and kick off without any additional timing. As long as you aren't using start commands.

Net stop and start is the correct way

either do all the net stops first then start or stop then start each one