tlman12 Posted May 5, 2011 Posted May 5, 2011 (edited) I know RunAsSet has been removed but was there a reason why? does it no longer work? or is there a function that does the same thing that i could use? i want something that can elevate the permissions of the current process i don't want to have to create a new process. sorry if this has been posted before but i couldn't seem to find it. thanks. Edited May 5, 2011 by tlman12
smartee Posted May 5, 2011 Posted May 5, 2011 hi tlman12, Try adding #RequireAdmin to the top of your script. -smartee
Developers Jos Posted May 5, 2011 Developers Posted May 5, 2011 RunAs() contains all you need as replacement for RunAsSet() & Run(), but will shell a new program with these elevated rights. Jos 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.
tlman12 Posted May 6, 2011 Author Posted May 6, 2011 hi tlman12, Try adding #RequireAdmin to the top of your script. -smarteei don't want the script to require admin i want the script the change the credentials that it's running under, from the users to an admin. RunAs() contains all you need as replacement for RunAsSet() & Run(), but will shell a new program with these elevated rights.Josyeah i want the old functionality of runasset that elevated the current process.. lol i'm picky
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