in reply to Re: (OT) Windows Vista UAC
in thread (OT) Windows Vista UAC

Thx Martin.
I will use it as a last resort.
I was hoping to find another solution.

I did find out that UAC is a system service, but unfortunately I'm not able to shut it down :-(
I also tried to run devcon.exe multiple times into a single process, but this effort did also not work :-(
(Since Microsoft claims that UAC only complains one on a single process, it would have been a nice solution. But apperantly devcon.exe is not ment to work in such a way)

Replies are listed 'Best First'.
Re^3: (OT) Windows Vista UAC
by marto (Cardinal) on Jan 25, 2007 at 17:07 UTC
    Well I have not used Vista yet (<rant>I mean 15GB disk space minimum required? Come on...</rant>), however I have read about the "enhanced security" and so on. If you do not have sufficient account privileges to disable UAC then (from what I have read) you may have to use WMI. Who knows, I have not seen your code, but it may be quicker to do a rewrite using WMI that it would be to try and figure out a way around this new "uber secure" version windows. Have you seen the DBD::WMI module?

    I am not fully aware of the user account privileges setup for Vista. Perhaps there is some sort of exclusion (or trusted apps) list that your system administrators could include your application in.

    Good luck,

    Martin
      Microsoft is indeed hitting limits on system requirements ;)
      And if you want to use the new Windows skins and still want a lot of speed, 1GB of RAM is best (I found 512MB a bit slow)

      I did check out the DBD::WMI module, and it realy is a great module!
      Thumbs up for Corion.
      I guess I do have to switch over to WMI.

      I was also looking at the privilige list. And if I'm correct on the Vista architecture, it may be possible to run devcon if it's included into the group policy. (I didn't check that out so far).
      Thus remaining an issue on the devcon tool itself, it is an unsigned software. Which means, if I'm not mistaken, that when UAC is enabled, it will always query the user for interaction :(
      That means that I do have to switch over to another application (like WMI).


      Update:
      My code itself is very straight forward, and it just calls devcon and captures its output. Afterwards I parse this string.
      With WMI, I use the Win32_PnPsingendDriver methode.
      The challange I had here was gathering all components belonging to a single device, but I figured that one out.
Re^3: (OT) Windows Vista UAC
by ikegami (Patriarch) on Jan 25, 2007 at 17:28 UTC

    The process that triggers UAC is the one running devcon, not the one calling devcon. You launch devcon multiple times, creating multiple processes. Each one of those triggers UAC no more than once.