WMI Access Denied


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: WMI Access Denied

Hybrid View

  1. #1
    Garry Mc Guest

    WMI Access Denied


    Greetings

    I'm having issues with executing WMI queries.. Sometimes they will work fine,
    other times (same queries) they will give 'Access Denied' exceptions.

    It appears to be conditional as to what is run first. I believe I've read
    they there's an issue in that the security context is taken from the first
    access to the resource so something.

    I'd like to know if this is the case and if there's a way around it so it
    will run all the time. (Oh I'm logged in as an administrator, and I'm only
    trying to run in on the local machine too).

    Garry Mc

  2. #2
    Bill B Guest

    Re: WMI Access Denied


    "Garry Mc" <vb.@127.0.0.1> wrote:
    >
    >Greetings
    >
    >I'm having issues with executing WMI queries.. Sometimes they will work

    fine,
    >other times (same queries) they will give 'Access Denied' exceptions.
    >
    >It appears to be conditional as to what is run first. I believe I've read
    >they there's an issue in that the security context is taken from the first
    >access to the resource so something.
    >
    >I'd like to know if this is the case and if there's a way around it so it
    >will run all the time. (Oh I'm logged in as an administrator, and I'm only
    >trying to run in on the local machine too).
    >
    >Garry Mc

    I am having the same problem. I have it occur when I am trying to set up
    a ManagementEventWatcher class. I run two instances of VS.Net (version 1.1).
    In one instance I have a program that fires an external WMI event and the
    other has the watcher program. I can run both multiple times without problems
    then suddenly I get the "Access Denied" error when attempting to instanciate
    the ManagementEventWatcher class when attempting to run the watcher program.
    The only way out of the problem is to reboot my system.

    I would also like to know if there is a way around this - the current solution
    is obviously not viable.

    Bill B


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center