Jump to content

RunAsSet Equivalent


Recommended Posts

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
Link to comment
Share on other sites

  • Developers

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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...