Jump to content

Check that state of a service in windows 2003 by a non-admin user


Recommended Posts

Posted

Hi im trying to verify that state of a windows 2003 service with a non admin

user with this command

sc \\computername query servicename

 

but i get this error

[sC] OpenSCManager FAILED 5: Acess Denied

 

i check on the web and i found this article on how to resolve this problem

(http://support.microsoft.com/kb/907460/en-us). i ran the command

 

sc sdset SCMANAGER

D:(A;;CCLCRPRC;;;AU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)

 

It work for a while but now when im running the same command "sc

\\computername query servicename"

i get this error. If i run this command with my admin user it work

 

[sC] EnumQueryServiceStatus:OpenService FAILDED 5: Acess Denied

 

Anyone can help me please

 

Thanks

 

JAc

  • Replies 1
  • Created
  • Last Reply
Posted

RE: Check that state of a service in windows 2003 by a non-admin user

 

Jac,

For each service you want to query you must set the permissions separatly.

You have only set security on the SCM which allows you to get a list of

services. You have not set the permission to query the service itself.

The permissions can be set via either group policy or via sc using the

service name.

See my post "How is security setup between the scm database and services"

Regards

Kris

 

 

"Jac" wrote:

> Hi im trying to verify that state of a windows 2003 service with a non admin

> user with this command

> sc \\computername query servicename

>

> but i get this error

> [sC] OpenSCManager FAILED 5: Acess Denied

>

> i check on the web and i found this article on how to resolve this problem

> (http://support.microsoft.com/kb/907460/en-us). i ran the command

>

> sc sdset SCMANAGER

> D:(A;;CCLCRPRC;;;AU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)

>

> It work for a while but now when im running the same command "sc

> \\computername query servicename"

> i get this error. If i run this command with my admin user it work

>

> [sC] EnumQueryServiceStatus:OpenService FAILDED 5: Acess Denied

>

> Anyone can help me please

>

> Thanks

>

> JAc

>

>


×
×
  • Create New...