WMI fails locally, works fine remotely. Why?



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?
.



Relevant Pages

  • Re: IMF fails to install
    ... Your Default Application Pool should be Network Service ... The Exchange Application Pool should be Predefined to Local System ... IISadmin is using local system account. ...
    (microsoft.public.exchange.misc)
  • SQL 2005 Configuration Manager in SBS 2008
    ... In the configuration manager under sql server services ... It only has three logons network service, ... I can only get the local system accepted. ... Mark Hickinbotham ...
    (microsoft.public.sqlserver.server)
  • Re: IIS_WPG and NETWORK SERVICE
    ... Network Service should be available from the drop-down list of preconfigured ... identities (along with Local System and Local Service). ... :I have an ASP.NET site hosted on an SBS 2003 server. ... and no changes have been made to IIS with respect to user rights, ...
    (microsoft.public.inetserver.iis.security)
  • Re: WMI fails locally, works fine remotely. Why?
    ... I use CoSetProxyBlanket() on my IWbemServices object to set up impersonation ... If I change the web service's identity from Network Service to Local System, ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Services messed up from malware and/or "help" from friend
    ... Messenger Started Automatic Local System ... (Help says Local Service is default for Messenger service) ... Started Automatic Network Service ... Except for a few differences in startup type, ...
    (microsoft.public.windowsxp.security_admin)

Loading