Get Service "RunAs" Information

V

Victor Pereira

Hi, i'm trying to retrive from my servers the information about "what
service is running with what credential". So i was studing the class
Win32_ApplicationService, but there is no properties with this
information.... I want to map what service is running with a local
administrator credential... Does anybody know how can i do it ?

Regards,

Victor
 
J

Jerold Schulman

Hi, i'm trying to retrive from my servers the information about "what
service is running with what credential". So i was studing the class
Win32_ApplicationService, but there is no properties with this
information.... I want to map what service is running with a local
administrator credential... Does anybody know how can i do it ?

Regards,

Victor
It is in the objectName Value Name at the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceShortName> sub-key.

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
V

Victor Pereira

Hey Jerold,

Thanks for you reply!!!

Is it impossible to get this information by WMI ?

Regards,

Victor
 
M

Manbinder Pal Singh [MSFT]

No. You would have to use windows API for doing so.

Thanks,
Manbinder Pal Singh

This posting is provided "AS IS" with no warranties, and confers no rights.
 
V

Victor Pereira

Ok, thanks!
Manbinder Pal Singh said:
No. You would have to use windows API for doing so.

Thanks,
Manbinder Pal Singh

This posting is provided "AS IS" with no warranties, and confers no
rights.
 

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