Is there a way to restart a Windows service from the command prompt?
Windows Command-Line – How to Restart a Windows Service
command linewindowswindows 7
command linewindowswindows 7
Is there a way to restart a Windows service from the command prompt?
Best Answer
You can use
net stop [service name]
to stop it andnet start [service name]
to start it up again basically restarting the service.To combine them just do this -
net stop [service name] && net start [service name]
.There is also a command built specifically for messing with services:
sc