jbaecker Posted April 4, 2006 Share Posted April 4, 2006 Hey, i have an problem with the function RunAsSet-Function on AutoITv3... my script is the following: $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Novell\NetwareWorkstation\CurrentVersion\", "Buildnumber") If $var <> 20051209 Then ; Set the RunAs parameters to use local adminstrator account RunAsSet("Administrator", "", "password") ; Run install.bat Novell-Client-Roll-Out RunWait(\\JB-NW65\VOL1\ZENWorks\nwcl491sp1\install.bat") ; Reset user's permissions RunAsSet() Else Exit EndIF I want to install the novell client on many pc´s in a network...the exe-file, that i´ve compiled with autoit is starting by login script from the novell client..but when i start the exe-file the installation of novell client abort with an error...if i start the batch-file directly, the installations runs without errors..must i declare the pc-name, beacuse i declare no pc-name, while i have many pc´s...and the script have to be universal...or is it better, to read a variable from registry (what is the pc-name..) and took into the script? i need help sorry for my bad english, but i´m german :-) with kind regards... jbaecker Link to comment Share on other sites More sharing options...
jbaecker Posted April 4, 2006 Author Share Posted April 4, 2006 anybody an idea? :-( Link to comment Share on other sites More sharing options...
Developers Jos Posted April 4, 2006 Developers Share Posted April 4, 2006 anybody an idea? :-(2 things:This looks wrong :RunAsSet("Administrator", "", "password")Should be : RunAsSet("Administrator", @Computername, "password")BUT: Will this Local pc account have access on the Server ?This subject has been covered many times so I am sure the search will return many hits with lots of details.. 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