Jump to content

Runsetas - Running as local system account


Recommended Posts

  • Developers

I am having a problem finding an example of how to use the runasset command to make the script run as the local system admin acount. Can someone provide me with an example? Thanks.

Whats wrong with the helpfile example ? :whistle:

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

Whats wrong with the helpfile example ? :whistle:

All I see in the example in the helpfile folder is this...

; Set the RunAs parameters to use local adminstrator account

RunAsSet("Administrator", @Computername, "adminpassword")

; Run registry editor as admin

RunWait("regedit.exe")

; Reset user's permissions

RunAsSet()

I'm wanting to run as the local system account... the same account that is used to run things like startup scripts.

Link to comment
Share on other sites

All I see in the example in the helpfile folder is this...

; Set the RunAs parameters to use local adminstrator account

RunAsSet("Administrator", @Computername, "adminpassword")

; Run registry editor as admin

RunWait("regedit.exe")

; Reset user's permissions

RunAsSet()

I'm wanting to run as the local system account... the same account that is used to run things like startup scripts.

Then use the same command. That is not only for an admin account, although that is what the RunAs is typically used for but you can use RunAsSet for any account.

RunAsSet("SystemAccount", @ComputerName, "SystemAccountPassword")

That should work fine.

EndFuncAutoIt is the shiznit. I love it.
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...