Sign in to follow this  
Followers 0
Micron

RunAsSet command

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


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

replace machinename with @Computername as shown in the helpfile example ....


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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