Sign in to follow this  
Followers 0
michaelxy

Simple Script with runasset not working

4 posts in this topic

Hello,

when I run this super-simple script:

Set the RunAs parameters to use local adminstrator account

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

; Run registry editor as admin

RunWait("c:\windows\regedit.exe")

; Reset user's permissions

RunAsSet()

with autoit 3.1.1 an Windows XPSP2

I get this ERROR - see Attachment.

Has 3.1.1 Errors ? Or why will run this simple script not ?

thanks

Michael

Share this post


Link to post
Share on other sites



Set the RunAs parameters to use local adminstrator account

Looks 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. :P

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