Jump to content

Recommended Posts

Posted (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 by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Posted

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... :D 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)

Posted

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)

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
×
×
  • Create New...