Premise How to start/stop a Windows Service via the command line.

Motorola Premise

123

Senior Member
The "SC" command is the Service Controller and it allows you to manage Windows Services from the command line. In Windows, start the Command Prompt and type SC to get a full listing of what it can do.

Premise runs as a Windows Service and its name is "prkernel.exe". Here's how you'd start and stop the prkernel service:

sc start prkernel
sc stop prkernel


Have you ever uninstalled a Windows Service only to discover that it remains visible in the Services applet? For whatever reason, the uninstall process failed to clean up the Registry. Here's how to rid the Registry of a leftover Service called "zombie":

sc delete zombie
 
Interesting - good find! I've always used the net start or net stop commands.

net start prkernel
net stop prkernel
net start (by itself, lists running services)

Looks like SC has quite a few more options. Thanks.
 
That'll work if the service name is the same as the executable... if not, use the service name located on the general tab when viewing the properties of the service. If it contains spaces, wrap the service name in quotes as shown.
 

Attachments

  • Gui.png
    Gui.png
    13 KB · Views: 18
  • cmd_line.png
    cmd_line.png
    14.3 KB · Views: 25
Back
Top