jftuga Posted May 12, 2010 Posted May 12, 2010 (edited) NEVERMIND ...wrong user name -----My script works as expected from my dev system, but not on a system that I want to deploy to. All systems are Windows XP SP3. I am using version 3.3.4.0. Would the newest version of AutoIt make any difference in this situation?$rv = RunAs( $u, @ComputerName, $p, 0, @AutoItExe, "c:\windows" ) MsgBox(0, $rv, @Error & " " & @AutoItExe)@AutoItExe is located in c:\windowswhen this code runs, rv = 0 and @Error = 1What does 1 mean? I know I am typing in the correct password.Thanks,-John Edited May 12, 2010 by jftuga Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
dobbelina Posted May 13, 2010 Posted May 13, 2010 NEVERMIND ...wrong user name ----- My script works as expected from my dev system, but not on a system that I want to deploy to. All systems are Windows XP SP3. I am using version 3.3.4.0. Would the newest version of AutoIt make any difference in this situation? $rv = RunAs( $u, @ComputerName, $p, 0, @AutoItExe, "c:\windows" ) MsgBox(0, $rv, @Error & " " & @AutoItExe) @AutoItExe is located in c:\windows when this code runs, rv = 0 and @Error = 1 What does 1 mean? I know I am typing in the correct password. Thanks, -John Try this: $rv = RunAs( $u, @ComputerName, $p, 0, @AutoItExe, @ScriptDir) MsgBox(0, $rv, @Error & " " & @AutoItExe)
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