WMI 'Access Is Denied' Exception on XP SP2 even with firewall off

From: Angus McFadzean (AngusMcFadzean_at_discussions.microsoft.com)
Date: 11/25/04


Date: Thu, 25 Nov 2004 05:13:02 -0800

WMI StopService 'Access Is Denied' Exception

The problem is that when I try to start/stop a service using WMI providers
on a remote machine (in this case one running embedded XP SP1, although I
don't think the flavour of XP matters) from an application on system running
Windows XP SP2 , I get the exception 'Access is Denied'. This is even with
the firewall turned off. This worked fine prior to installing SP2

We first started to notice this with an in-house application after
installation of XP SP2. However it can be demonstrated using the project on
the following website:

http://www.codeproject.com/csharp/wmi.asp

I've been able to get this WMI application to run successfully on XP SP2
(after enabling the remote administration services) except that when I go
into the Services tab and connect to a remote machine, although I can see the
full list of services on that machine, I cannot start or stop any of these
services (by right-clicking on the service to be stopped) without getting the
'Access is Denied' exception. I have tried logging in to the remote machine
as both a local user (that has full administrator privileges) and as
administrator. This application is working OK in SP1 and Windows 2000 systems
without any problems.

Any help greatly appreciated.



Relevant Pages

  • Re: WMI Access Is Denied Exception on XP SP2 even with firewall off
    ... > WMI StopService 'Access Is Denied' Exception ... This worked fine prior to installing SP2 ... I have tried logging in to the remote machine ...
    (microsoft.public.win32.programmer.wmi)
  • Re: LSA vs LSP GUI on Vista/2008?
    ... I mentioned WMI because Joe had suggested it in this thread, I will instead post to WMI group about it. ... I was assuming you could remote a call to any class that's part of the base .NET Framework on the remote machine. ... the app that uses the COM object does not need the Admin privileges. ... you need the admin privileges only during the installation. ...
    (microsoft.public.platformsdk.security)
  • Re: WMI Access Denied WIN32_UserAccount Class
    ... I added in the additional ConnectionOptions, ... but rather the WMI security setup on the other machine - I ... >for ConnectionOptions object to remote machine, ... >> domain, String machine, String username, String ...
    (microsoft.public.win32.programmer.wmi)
  • Re: change local admin password on remote computers
    ... Start tthe script remotely on the server, let it eg. mail the results. ... Or place the script on the remote machine, start it over WMI and let the ...
    (microsoft.public.scripting.vbscript)
  • Re: WMI in ASP fails on 2003 (err 80041003); works fine on 2000
    ... Second - I have two production 2000 servers here that process the WMI in ASP ... > Hi Jeff, ... >> the WMI script uses delegation to reach the remote machine. ...
    (microsoft.public.win32.programmer.wmi)