Search code examples
c#uac

Programmatically auto-fill UAC details


Is there a way to, via programmatically, auto-fill in the UAC login name and password in Visa?

For instance, the UAC prompt comes up. Your program auto-fills that information for you.

E.g., a program that would auto-fill that information with an administrator username and password in the UAC prompt.

SendKeys does not work to send input keys to the UAC dialog box


Solution

  • There are several levels of UAC. I believe what you want is not possible if you use the UAC with the "greyed" screen. This mode is there to specifically not allow other programs access to the UAC-Window.