Jump to content

Recommended Posts

Posted

I’m a new user, so go easy on me…

I’m simply trying to auto-click the “Yes” option on a Windows 10 UAC prompt that pops up when I launch a specific program. I’ve worked through the tutorials no problem, but the UAC window in particular seems to behave differently from normal windows. AutoIt can’t “see” the Yes/No option buttons and my script pauses indefinitely. 

What am I missing? 

Posted

I don't believe we are allowed to discuss bypassing security measures  (see forum rules), unless a moderator tells the contrary.

But what we can discuss is the way to disable UAC thru registry.  Just set to 0 the following key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA

You will need to restart your computer

 

Posted

Interesting. I hadn’t considered this a security issue, since it’s my own machine. I’m just trying to streamline the system restart after a power failure. 

Your registry tweak looks like the equivalent of moving the UAC notification slider all the way to “never notify.” I’d like to avoid that if I can, because you never know when some other program will pop up a legitimate UAC that I’m not expecting. Turning off all notifications all the time feels too drastic. 

What I *want* is to tell Windows, “yes, I already know about this program and I promise it’s safe,” but there doesn’t seem to be a way to do that. Auto-clicking the UAC seemed like the next-best solution. 

  • Developers
Posted
3 hours ago, RoadHazard said:

What am I missing? 

Maybe consider that this is a way to secure Windows.? ;) 
When you have Admin rights to the Computer, you have multiple ways of installing things, but not a scripted foreground install.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
1 hour ago, RoadHazard said:

What I *want* is to tell Windows, “yes, I already know about this program and I promise it’s safe,”

Add it to TaskSched. and to run with admin rights. on login. ( no coding needed )

This is how I did it ( here ) but it'll take brainstorming to adapt it to your code. Or, there are UDFs for that in this forum too.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
1 hour ago, RoadHazard said:

What I *want* is to tell Windows, “yes, I already know about this program and I promise it’s safe

Sadly your wish will not come true.  This is why Windows implemented a lot of security nets to disable temptations to take over computers.

And I am not quite sure about your objectives, what is it so complicated for a user to press a Yes button ?

Posted
3 hours ago, Nine said:

And I am not quite sure about your objectives, what is it so complicated for a user to press a Yes button ?

Because I’m often not physically in front of the machine when it restarts after a power failure. It may be days before I can stand in front of it and click the stupid Yes button. I’d hoped to automate this, but I guess not. 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...