Jump to content
Sign in to follow this  
teeboi

RunAs Admin Command

Recommended Posts

teeboi

I have a script which will create some HKCU registry keys but i am running into a permission issue since all of our users are only read writes to that registry not the modify rights. I was wondering if there somehow i can incript the Admin name & password in my script and tell it to run as? Please advise

Share this post


Link to post
Share on other sites
Jos

Assume you mean Encrypt?

Not really since you need the actual userid and password at runas() time.

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
teeboi

lol yea i meant encrypt. So i can put the ID & Password and compile it to exe. Users wont be able to know this script anyways i just need to know the way to put the admin ID & Pass within my script

Share this post


Link to post
Share on other sites
Jos

Did you check the helpfile for the example?

pls, remember that it isn't 100% safe when its compiles since a compiled script is the source and runtime module together in an EXE.


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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.