Sign in to follow this  
Followers 0
tlman12

RunAsSet Equivalent

4 posts in this topic

#1 ·  Posted (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 by tlman12

Share this post


Link to post
Share on other sites



hi tlman12,

Try adding #RequireAdmin to the top of your script.

-smartee

Share this post


Link to post
Share on other sites

RunAs() contains all you need as replacement for RunAsSet() & Run(), but will shell a new program with these elevated rights.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

hi tlman12,

Try adding #RequireAdmin to the top of your script.

-smartee

i 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.

Jos

yeah i want the old functionality of runasset that elevated the current process.. lol i'm picky

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  
Followers 0