Jump to content

Recommended Posts

Posted

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?

Posted

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!

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
×
×
  • Create New...