Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 6 Aug 2008 15:12:11 -0700,    group: microsoft.public.win32.programmer.wmi        back       


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?
date: Wed, 6 Aug 2008 15:12:11 -0700   author:   IdentityCrisis

Re: WMI fails locally, works fine remotely. Why?   
You just can't use impersonation on the local machine (you can't run
WMI with other privileges than those the user that runs the software
has, would be sort of a security issue locally).
Alternatives would be running on a virtual machine (so the local
machine's sole purpose is to analyze others)

rob'
On 7 août, 00:12, IdentityCrisis
 wrote:
> 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?
date: Fri, 8 Aug 2008 01:09:39 -0700 (PDT)   author:   RD

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us