Jump to content

Runasset Problem


Recommended Posts

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)

Link to comment
Share on other sites

  • Developers

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

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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...