Sign in to follow this  
Followers 0
michaelwilliams

Runsetas - Running as local system account

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



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:

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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.

Share this post


Link to post
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.

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  
Followers 0