WMI fails locally, works fine remotely. Why?
- From: IdentityCrisis <IdentityCrisis@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Aug 2008 15:12:11 -0700
My web service, running as Network Service, uses the WMI COM API to modify a
class instance. When working locally, it fails with 'Access Denied' errors,
but works fine remotely.
I use CoSetProxyBlanket() on my IWbemServices object to set up impersonation
of a local administrator. It seems that these settings are being utilized
correctly when connecting to a remote machine, but are ignored when local.
If I change the web service's identity from Network Service to Local System,
everything works fine. However, I don't want to have to do this.
How can I force the use of the security settings specified by
CoSetProxyBlanket()? Failing that, are there any alternatives to just
changing the Network Service to Local System?
.
- Follow-Ups:
- Prev by Date: RE: WMI Win32_process create memory limitation
- Next by Date: Copy Files from remote to local system
- Previous by thread: RE: WMI Win32_process create memory limitation
- Next by thread: Re: WMI fails locally, works fine remotely. Why?
- Index(es):
Relevant Pages
|
Loading