sc command error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Archived from groups: microsoft.public.win2000.general (More info?)

Hello Group,

I am trying to run the sc command to check that status of the "Server"
& "Workstation" services on Win 2000, but am getting the following
error:

command: sc query "Server"

[SC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.


I checked the status of the service (Admin Tools -> Services) & it says
"Started". The "Log on as" says LocalSystem. What I have noticed is
that when I issue the sc command to check the status, it only works if
the "Log on as" is not LocalSystem i.e. it works only if the service
has been started using an account other than LocalSystem.

Am I doing something wrong? How can I check the status for services
that have the "Log on as" as LocalSystem?

Thanks for any help.
Suhas
 
Archived from groups: microsoft.public.win2000.general (More info?)

Try;
sc query lanmanserver

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Unix-Shell" wrote:
| Hello Group,
|
| I am trying to run the sc command to check that status of the "Server"
| & "Workstation" services on Win 2000, but am getting the following
| error:
|
| command: sc query "Server"
|
| [SC] EnumQueryServicesStatus:OpenService FAILED 1060:
|
| The specified service does not exist as an installed service.
|
|
| I checked the status of the service (Admin Tools -> Services) & it says
| "Started". The "Log on as" says LocalSystem. What I have noticed is
| that when I issue the sc command to check the status, it only works if
| the "Log on as" is not LocalSystem i.e. it works only if the service
| has been started using an account other than LocalSystem.
|
| Am I doing something wrong? How can I check the status for services
| that have the "Log on as" as LocalSystem?
|
| Thanks for any help.
| Suhas
|
 
Archived from groups: microsoft.public.win2000.general (More info?)

You're welcome.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Unix-Shell" wrote:
| Thanks Dave. Works perfectly.
|