how to disable uac prompt programmatically
-
Dear Friends, I have requirement to disable UAC prompt through programmatically. Please anyone help me on this. Thanks, S Shanmuga Raja
-
Dear Friends, I have requirement to disable UAC prompt through programmatically. Please anyone help me on this. Thanks, S Shanmuga Raja
-
Dear Friends, I have requirement to disable UAC prompt through programmatically. Please anyone help me on this. Thanks, S Shanmuga Raja
That is not possible for the current login session because it would defeat the purpose of UAC. You can change the setting using the registry but that requires a reboot to become active (see Enable or Disable UAC From the Windows Command Line[^]; it is for the command line but shows the registry settings to be changed).
-
That is not possible for the current login session because it would defeat the purpose of UAC. You can change the setting using the registry but that requires a reboot to become active (see Enable or Disable UAC From the Windows Command Line[^]; it is for the command line but shows the registry settings to be changed).
whether its possible to assign administrator right to my application though programmatically. So that I can set value 0 or 1 to EnableLUA in registry.
-
whether its possible to assign administrator right to my application though programmatically. So that I can set value 0 or 1 to EnableLUA in registry.
Assigning administrator rights to an application requires administrative privileges. So while it does not have these, you can't change it. And you can not elevate the privileges of a running process. You can use a manifest to specify that your application should run elevated, use the "runas" command or start other applications elevated from within your program. But in all these cases there will be a UAC prompt. UAC is there for a reason. It is a security feature. The user decides which level of security should be used. An application can not bypass these settings.