Jump to content

RunAsSet command


Recommended Posts

Hi,

I want to run a program as administrator on a Windows XP SP2 machine. I created a script just as shown in the help file, and the I convert it to .exe file.

When I run the script on the Windows machine, I get this error message :

Line 0 (File ''C:\Documents and settings\User\Desktop\file.exe"):

RunAsSet("Administrator", machinename, "password")

RunAsSet("Administrator", ^ERROR

Error : Unknown function name.

What should I do?

Thank you.

Link to comment
Share on other sites

Hi,

I want to run a program as administrator on a Windows XP SP2 machine. I created a script just as shown in the help file, and the I convert it to .exe file.

When I run the script on the Windows machine, I get this error message :

What should I do?

Thank you.

Could you post the code that gives that error message?

Just alot easier to help if you do

just from the error, i think where it says "machinename" you have to actually give the machine name

:D

for any more help i need code

Edited by Paulie
Link to comment
Share on other sites

  • Developers

Hi,

I want to run a program as administrator on a Windows XP SP2 machine. I created a script just as shown in the help file, and the I convert it to .exe file.

When I run the script on the Windows machine, I get this error message :

What should I do?

Thank you.

replace machinename with @Computername as shown in 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.
  :)

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...