Sign in to follow this  
Followers 0
emmanuel

Runasset Problem

4 posts in this topic

#1 ·  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)

Share this post


Link to post
Share on other sites



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 ??

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0