Accessing remote perfmon/PDH data from a service, how to

Z

Zoltan Luspai

Hello,

I am developing a data collection module which needs to
access remote Perfmon data using PDH libraries, and should
also run as service. The problem is when I run this code
as service the access is denied to the remote if it runs
as LocalSystem. The question is if it is possible, or how
can I dynamically authenticate from the service code, so
that it can access the perfmon data (probably same problem
as accessing the remote registry) ?

Thanks,
Zoltan
 
D

Dale Weiss

Hello,

If the service is attempting to access a remote system with LocalSystem
credentials, then I would expect this to fail. The security context for the
service is the local system, which has rights locally but not to other
systems remotely.

Typically, when network resource access is required, a service account is
used.

The service account will need rights to access the target resource just as
a person would.

Dale Weiss MCSA MCSE CISSP
PSS Security

This posting is provided "AS IS" with no warranties, and confers no rights.
Any opinions or policies stated within are my own and do not necessarily
constitute those of my employer. Use of included script samples are subject
to the terms
specified at http://www.microsoft.com/info/cpyright.htm
 

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