emmanuel Posted May 4, 2004 Share Posted May 4, 2004 (edited) RunAsSet("administrator", @Computername, "smarta$$" ) I was wondering if the $ in the password could be causing the problem? that's not the real password, but that seems the only thing that could be wrong with it. I get a "Logon failure: unknown user name or bad password" error and the script dies. edit: I tested the username and password on the target PC and they work, so that seems to leave the problem as something else? Edited May 4, 2004 by emmanuel "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Developers Jos Posted May 4, 2004 Developers Share Posted May 4, 2004 I get a "Logon failure: unknown user name or bad password" errorWhen/Where do you get this error ? this is not an AutoIt error ...right ?? 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...
emmanuel Posted May 4, 2004 Author Share Posted May 4, 2004 I get the error when attempting to run a file on the network, which the logged in user has access to, but the runasset user does not... is that the problem? so, I should copy the file local before the runasset, then do the runas local admin bit... --------------------------- AutoIt Error --------------------------- Line 0: Run("\\spseprt1\windist\ITProcedures\autoit\Aces_Install_src\acesinstall.EXE") Error: Unable to execute the external program. Logon failure: unknown user name or bad password. --------------------------- OK --------------------------- "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
emmanuel Posted May 4, 2004 Author Share Posted May 4, 2004 and, yes indeedy, that did it. JdeB, thanks for the kick that got me thinking. "I'm not even supposed to be here today!" -Dante (Hicks) 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