kasarah Posted May 20, 2008 Share Posted May 20, 2008 Title/Description pretty much says it... Has anyone been able to control the Vista, "User Account Control" window and press the continue button? I can't seem to find it nor activate with WinExists/WinActivate. Thanks in advance for any help, B Link to comment Share on other sites More sharing options...
monoceres Posted May 20, 2008 Share Posted May 20, 2008 If an application could just "skip" UAC by pressing continue, then there would be no use of having UAC enabled, would there? I'm sure microsoft have made sure that you can not automate UAC. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Administrators Jon Posted May 20, 2008 Administrators Share Posted May 20, 2008 Actually you can. But only with a signed application within Program Files AND that has a special entry in the manifest file. Even then it can be turned off by group policy - so not very practical Edit: Oh, and there is also a group policy to turn off secure desktop (the gray screen) which makes UAC appear on the normal desktop which can be interacted with. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
kasarah Posted May 21, 2008 Author Share Posted May 21, 2008 So, Actually, you can somewhat by-pass the screen graying out thing. Apparently, Vista has two "sessions" and will actually screen shot the current session, gray it out, disable it, and open another with your UAC pop-up. It disables everything in the background. If your job happens to be testing an application where you need UAC functionality, you can prevent this "graying out" by regedit: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] Right-click in the right-hand pane and create a new 32-bit DWORD value called PromptOnSecureDesktop, setting the value to 0. This still leaves the case of "untrusted" app. Elevate doesn't seem to work. I believe the key at this point is setting up a certificate for your compiled AutoIt code. I made an attempt at that, but unfortunately didn't seem to take (didn't go to Vista store). Will still play with it but may be forced to move on. Thanks to those who replied! Bill Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now