enable UAC
-
Friday, September 11, 2009 11:54 AMhi,
how can i enable and disable UAC of vista at runtime by programatically
All Replies
-
Friday, September 11, 2009 12:07 PMHi,
I hope it will help you
http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/dd400cb9-d5fc-41b2-ad9d-6b91ce88c766
Best Regards, C.Gnanadurai ----------------------- Please mark the post as answer if it is helpfull to you -
Friday, September 11, 2009 12:16 PMHi,
you can set the EnableLUA Value in the Registry(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System) to 0 to disable and to 1 to enable.
If you have got questions about this, just ask.
Mark the thread as answered if the answer helps you. This helps others who have the same problem !
C# to VB.NET: http://www.developerfusion.com/tools/convert/csharp-to-vb/ -
Friday, September 11, 2009 2:12 PMModerator
Be aware that a reboot is in order after UAC is toggled. Therefore you can't simply toggle the registry and enable/disable the feature. That also means that the existence (or lack therefore) is not sufficient to detect whether UAC is enabled since a pending reboot might be in order.
Michael Taylor - 9/11/09
http://p3net.mvps.org- Marked As Answer by nobugzMVP, Moderator Saturday, September 12, 2009 12:35 AM
-
Monday, September 14, 2009 6:35 PMSo does that mean that he cannot enable and disable UAC of vista at runtime by programmatically?
-
Monday, September 14, 2009 6:45 PMModeratorYou can change it programmatically although the approach is undocumented. However it does not take effect until a reboot occurs. Furthermore if UAC is enabled then you won't be able to change it without a UAC prompt.
Michael Taylor - 9/14/09
http://p3net.mvps.org -
Monday, September 14, 2009 8:13 PMThanks TaylorMichaelL. I found a tool that let me disable UAC and will let it stay disabled even after a reboot . They call it "bye bye uac". Do you have an idea how they manage to do this?
-
Monday, September 14, 2009 8:16 PMModerator
As was mentioned earlier in the thread a registry entry can be set to disable UAC. However, it does not take effect until a reboot. Once you reboot UAC will be enabled or disabled and remain so until it is changed again.
Michael Taylor - 9/14/09
http://p3net.mvps.org- Marked As Answer by eryangModerator Friday, October 09, 2009 3:24 AM

