michaelxy Posted December 7, 2005 Share Posted December 7, 2005 Hello,when I run this super-simple script:Set the RunAs parameters to use local adminstrator accountRunAsSet("Administrator", @Computername, "xxxxx"); Run registry editor as adminRunWait("c:\windows\regedit.exe"); Reset user's permissionsRunAsSet()with autoit 3.1.1 an Windows XPSP2I get this ERROR - see Attachment.Has 3.1.1 Errors ? Or why will run this simple script not ?thanksMichael Link to comment Share on other sites More sharing options...
Nuffilein805 Posted December 7, 2005 Share Posted December 7, 2005 the problem is not the runasset it is the line (File "D:\Test.au3") just erase the filething (here recognized as function) then it could work if you post your script its easier to tell you where you made some mistakes my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
MHz Posted December 7, 2005 Share Posted December 7, 2005 Set the RunAs parameters to use local adminstrator accountLooks like the error message is processing the above line ? And Set is an unknown function. With what script you show, I agree with AutoIt that it cannot process the above line as code. Link to comment Share on other sites More sharing options...
Nathan Posted December 7, 2005 Share Posted December 7, 2005 Maybe this script i wrote some time ago will solve your problem.RunAsAdmin.au3 Link to comment Share on other sites More sharing options...
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