Micron Posted June 9, 2006 Share Posted June 9, 2006 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", ^ERRORError : Unknown function name.What should I do?Thank you. Link to comment Share on other sites More sharing options...
Paulie Posted June 9, 2006 Share Posted June 9, 2006 (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 dojust from the error, i think where it says "machinename" you have to actually give the machine namefor any more help i need code Edited June 9, 2006 by Paulie Link to comment Share on other sites More sharing options...
Developers Jos Posted June 9, 2006 Developers Share Posted June 9, 2006 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 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