Jump to content

Recommended Posts

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
Posted

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

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