11-11-2009 02:54 AM - edited 11-11-2009 02:55 AM
Hi
How can I disable UAC control window on Windows Vista using LabVIEW?
I made this VI (see attach). This VI works, only if i manually disabled the UAC Window (from regedit: "Software\Microsoft\Windows\CurrentVersion\Policies\System - EnableLUA=0 [DWORD]) from regedit or control pannel.
If i run my VI on a computer that has UAC ON, i cannot open the registry key. Although, if i manually go to regedit and change the windows variable EnableLUA to zero and restart the computer, then I'll be able to control this registry key from LabVIEW.
Is there any way around to disable the UAC only with LabVIEW. This means, is there any way to modify the Windows variable EnableLUA when I previously have the UAC ON?
Thanks
Solved! Go to Solution.
11-12-2009 08:52 AM
I'm not (thankfully) a Vista expert, but from what I've read, you can't programmatically disable UAC on Vista without some sort of user confirmation. That would sort of defeat the whole purpose, wouldn't it? Besides, I'm not sure if it would even be proper to discuss such a method on this forum given the security implications.
Your best bet is to use Google for "programmatically disable UAC on Vista", as this is a Vista question, not really a LabVIEW question.
11-12-2009 01:03 PM
Hi JPLO,
If you're running your VI as a limited user or in admin approval mode, I would not expect to be able to disable admin approval mode. Try right-clicking on the LabVIEW icon in the Start Menu and selecting "Run as administrator", and then run your VI.
Brad
11-13-2009 02:53 AM
Hi.
Thanks for the answers Brad and SMercurio!
The ideia was making this transparent for the user. He would not see this confirmation window, and doesn't need to change the Windows Vista registry key.
I'll try running LabVIEW as administrator as Brad sugested
Thank you both!