Start service from command line

T

Tony Thijs

By disabling the wrong services under Windows 2000 server I cannot start
them by using the GUI tools. Even in the even viewer I cannot see the errors
anymore. Right mouse button does not show the search windows when asked for.
Who knows articles that describe how to do this with the names of the
executables of the Win 2000 server services.
Thanks
Tony Thijs
 
H

Herb Martin

Tony Thijs said:
By disabling the wrong services under Windows 2000 server I cannot start
them by using the GUI tools. Even in the even viewer I cannot see the errors
anymore. Right mouse button does not show the search windows when asked for.
Who knows articles that describe how to do this with the names of the
executables of the Win 2000 server services.

Doing it is easy; getting a (usuable) name for each service can be harder.

Net Start "service name"

The services (and names) are listed in the Registry but you seem to be
having
trouble with the GUI and that might include RegEdit.
 
M

Mark V

Herb Martin wrote in
An excellent reference -- thanks (from me also) even though it
wasn't my original question.

YW I think so to.

OP could also get Resource Kit tools (sc.exe for exam.) or pslist.exe
from www.sysinternals.com (free) to list the system's Services.
 
M

Mark V

Herb Martin wrote in
An excellent reference -- thanks (from me also) even though it
wasn't my original question.

YW I think so to.

OP could also get Resource Kit tools (sc.exe for exam.) or
psservice.exe from www.sysinternals.com (free) to list the system's
Services.
 
R

Ray at

You can get the service name from services.msc too. The first value on the
properties dialog for each service is the name. I.E.:

Application Layer Gateway Service (pretty name)
Pull up the properties for that, and you'll see it says "Service Name: ALG"

Henceforth:

net start alg

Ray at home
 
H

Herb Martin

You can get the service name from services.msc too. The first value on
the
properties dialog for each service is the name. I.E.:

Does that always work for "net start"?

--
Herb Martin
Ray at said:
You can get the service name from services.msc too. The first value on the
properties dialog for each service is the name. I.E.:

Application Layer Gateway Service (pretty name)
Pull up the properties for that, and you'll see it says "Service Name: ALG"

Henceforth:

net start alg

Ray at home
 
M

Mark V

Does what always work for net start?

I think he's asking if the displayed NAME (DisplayName) always works
being as it is usually different than the ServiceName. AFAIK it does
so long as you wrap it in dbl-quotes (if embedded spaces). Or maybe
the other way around...?
 
H

Herb Martin

You can get the service name from services.msc too. The first value
on
Does what always work for net start?

Does the "first value" in services always work for Net Start?

(I have a vague memory of that name being unrecognized for SOME services.)
 
R

Ray at

Mark V said:
I think he's asking if the displayed NAME (DisplayName) always works
being as it is usually different than the ServiceName. AFAIK it does
so long as you wrap it in dbl-quotes (if embedded spaces). Or maybe
the other way around...?

Ah, I see. I've never seen it be different. I'd bet a dollar that the mmc
snap-in is pulling the names from the same place. I was going to say that
this place was the in the registry for each service, but when I looked to
verify this, I got confused. The server service, for example, is in the
lanmanserver key in the registry. The display name is "server." The
Application Management service is in appmgmt, which is the command line name
of it. So, we have one service that can be "net started" by its display
name, and another one that can be started by referencing the same name as
the registry key. But in that registry key for AppMgmt, there is no
reference to "appmgmt." I don't know if what I just wrote makes sense or
not.

Ray at work
 
H

Herb Martin

Ah, I see. I've never seen it be different. I'd bet a dollar that the
mmc
snap-in is pulling the names from the same place. I was going to say that
this place was the in the registry for each service, but when I looked to
verify this, I got confused. The server service, for example, is in the
lanmanserver key in the registry. The display name is "server." The
Application Management service is in appmgmt, which is the command line name
of it. So, we have one service that can be "net started" by its display
name, and another one that can be started by referencing the same name as
the registry key. But in that registry key for AppMgmt, there is no
reference to "appmgmt." I don't know if what I just wrote makes sense or
not.

Yes, that's it. I think you gave very good general advice but I have
this vague memory about it failing in certain limited specific situations.
 
M

Mark V

Ah, I see. I've never seen it be different. I'd bet a dollar
that the mmc snap-in is pulling the names from the same place. I
was going to say that this place was the in the registry for each
service, but when I looked to verify this, I got confused. The
server service, for example, is in the lanmanserver key in the
registry. The display name is "server." The Application
Management service is in appmgmt, which is the command line name
of it. So, we have one service that can be "net started" by its
display name, and another one that can be started by referencing
the same name as the registry key. But in that registry key for
AppMgmt, there is no reference to "appmgmt." I don't know if what
I just wrote makes sense or not.

You make sense. MS does not. :)

sclist.exe
AppMgmt Application Management
lanmanserver Server

sc.exe query
SERVICE_NAME: AppMgmt
DISPLAY_NAME: Application Management

SERVICE_NAME: lanmanserver
DISPLAY_NAME: Server

psservice.exe
SERVICE_NAME: lanmanserver
DISPLAY_NAME: Server

SERVICE_NAME: AppMgmt
DISPLAY_NAME: Application Management

net start:
Application Management
Server

....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top