Jump to content

Simple Script with runasset not working


Recommended Posts

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

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