I want to write a small function which will keep admin persistence in my application. So even after the computer is restarted the application will still have admin privileges. Is this possible to do? Also, if I disable the UAC, will it be re-enabled on reboot?
Asked
Active
Viewed 107 times
-1
-
2I don't recommend disabling UAC. That's a rather extreme system-wide change for the sake of your one program. – ose Oct 24 '14 at 18:32
-
What else can you recommend doing if I am looking to get my program to start-up without having the "open file warning" appear on reboot? – sysenter Oct 24 '14 at 18:50
-
Brady's answer is good, see below. – ose Oct 24 '14 at 19:22
1 Answers
0
Disabling UAC in Windows, on your account, will not cause it to be re-enabled on reboot.
Not sure if this helps but if you right click the application and choose "Properties" and then the "Compatibility" tab there's an option you can check to make sure the program always open with admin privileges.

Brady
- 403
- 1
- 8
- 19
-
Oh really! Hmm, perfect. And if I disable the UAC, will the "would you like to run or cancel this file" window come up on startup? And what if I re-enable UAC after the application is started? – sysenter Oct 24 '14 at 18:33