Jump to content

How to remove #RequireAdmin - (Moved)


Psyllex
 Share

Recommended Posts

I'm trying to install some setup stuff on Win10. 
 

One part of the script requires just regular user privileges but the other requires admin privileges.  When I run it from the Autoit Editor it works like a champ.  When I build it, Windows slaps the admin stamp on it and then when I attempt to run the part that only requires regular users....it gets all hosed up. 

Is there a way to remove #RequireAdmin? 

I've tried RunAs(username, "", myPassword, "", "cmd.exe", "") but that never seems to work.

Can someone help me out?

Link to comment
Share on other sites

Hello,

I'm not sure, if I really get what you mean by telling "... it gets all hosed up".

 

What exactly are you trying to do, and what errors do you face? (your code, pls!)

 

If the script requires full UAC access, you will need to use #requireadmin.

 

Mybe other execution levels might be sufficent as well for this particular setup? See the compilatioin options:

image.png.540af4a7610f2599dea6254ac686e9b3.png

 

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

Link to comment
Share on other sites

Run the script from an elevated process.   such as an elevated command prompt, or a scheduled task set to be elevated

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
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
 Share

×
×
  • Create New...