Jump to content
Sign in to follow this  
tlman12

RunAsSet Equivalent

Recommended Posts

tlman12

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
smartee

hi tlman12,

Try adding #RequireAdmin to the top of your script.

-smartee

Share this post


Link to post
Share on other sites
tlman12

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  

×