Jump to content
Sign in to follow this  
anybastard

UAC "issue" with Win 8.1

Recommended Posts

Hi guys ,

I need your help for a stupid issue , but I'm not able to solve

Basically I need to change some registry value and with RegWrite command all works fine .

My problem is related to UAC pop-up  , because I'm not able to skip it and run my script with admin privileges  ( also using #RequireAdmin )

BTW , for different reasons I cannot disable UAC

 

Do you have any idea or workaround for me ?

Thanks a lot

BR

AnyB

Share this post


Link to post
Share on other sites

Should be able to modify reg without an issue on windows 8. Example: (Unrelated to yours)

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", "http://msn.com")

It changes your homepage to http://msn.com when you open your internet explorer.

and you do not need to use #requireadmin for this as long as you log on as the local admin.

Edited by asianqueen

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")

Share this post


Link to post
Share on other sites

Hi.

thanks for your reply

 

@ Reb

I will check your suggestion

@ Asianqueen

My problem is not change the reg value  , it works w/o problem . My question is skip UAC popup and run the script w/ admin privilege

Br

AnyB

Share this post


Link to post
Share on other sites

do you need the #requireadmin to run your script anyways? If so, I don't think you can skip it.

Additional suggestion, but not recommend is to turn off UAC completely.

Edited by asianqueen

Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")

Share this post


Link to post
Share on other sites

Have a look the _UAC_SetConsentPromptBehaviorAdmin in my >UAC UDF that reb mentioned.  

#RequireAdmin
#include <UAC.au3>

_UAC_SetConsentPromptBehaviorAdmin($UAC_ELEVATE_WITHOUT_PROMPTING)

This turns off the UAC prompts for admins, but leaves it for regular users.

 

Adam

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...