michaelwilliams Posted March 9, 2007 Posted March 9, 2007 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.
Developers Jos Posted March 9, 2007 Developers Posted March 9, 2007 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 ? 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.
michaelwilliams Posted March 9, 2007 Author Posted March 9, 2007 Whats wrong with the helpfile example ? All I see in the example in the helpfile folder is this...; Set the RunAs parameters to use local adminstrator accountRunAsSet("Administrator", @Computername, "adminpassword"); Run registry editor as adminRunWait("regedit.exe"); Reset user's permissionsRunAsSet()I'm wanting to run as the local system account... the same account that is used to run things like startup scripts.
EndFunc Posted March 9, 2007 Posted March 9, 2007 All I see in the example in the helpfile folder is this...; Set the RunAs parameters to use local adminstrator accountRunAsSet("Administrator", @Computername, "adminpassword"); Run registry editor as adminRunWait("regedit.exe"); Reset user's permissionsRunAsSet()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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now