Psyllex Posted December 17, 2018 Posted December 17, 2018 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?
Developers Jos Posted December 18, 2018 Developers Posted December 18, 2018 Moved to the appropriate forum. Moderation Team 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.
rudi Posted December 18, 2018 Posted December 18, 2018 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: Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
Nine Posted December 18, 2018 Posted December 18, 2018 Why do you need to use RunAs ? Why basic Run would not be sufficient ? Cause RunAs is usually taken to execute remote stuff... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
jdelaney Posted December 18, 2018 Posted December 18, 2018 (edited) Run the script from an elevated process. such as an elevated command prompt, or a scheduled task set to be elevated Edited December 18, 2018 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.
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