Starting/Stopping services via NET (how to find names for services?)

  • Thread starter Thread starter DukeN
  • Start date Start date
D

DukeN

Quick question guys, regarding the NET command for starting/stopping
services via command line.

Certain services I can't find the name to use for in the command
prompt.

How would I find what the service name is to type in the command
prompt, or is there a command that lists all service names for services
on the PC?

NET help services only lists a few predetermined one, is there one that
lists much more? Thanks.
 
There are sveral ways to do this. Here are three that I know of.

Open Services...
Start | Run | Type: services.msc | Click OK |
Scroll down to and double click the service you want to stop |
On the General tab, Service name: take note of the Service Name not the
Display Name | Close Services

Look in...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

The command:

sc query state= all

will display the SERVICE_NAME and DISPLAY_NAME of all services & drivers.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Quick question guys, regarding the NET command for
starting/stopping services via command line.

Certain services I can't find the name to use for in the command
prompt.

How would I find what the service name is to type in the command
prompt, or is there a command that lists all service names for
services on the PC?

NET help services only lists a few predetermined one, is there one
that lists much more? Thanks.

The freeware command-line program "psservice.exe", part of the
"PsTools" package from Sysinternals, will list and control services
from the command line on other machines over the network as well as on
the current machine.

<http://www.sysinternals.com/Utilities/PsTools.html>

HTH,
John
 
Thanks guys!

PS: Are there other winternals/sysinternals free tools I should be
aware of (that I can download free of cost)?

Thanks.
 
As far as I know they are all free. Now. Better hurry, Microsoft bought
Winternals and Sysinternals and Mark and Bryce now work for Microsoft.

http://www.sysinternals.com

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top