Tuesday, 20 August 2013

runas - 1326: Logon failure: unknown user name or bad password

runas - 1326: Logon failure: unknown user name or bad password

I tried to execute notepad from cmd using the following command-
runas /noprofile /user:<username>@<ip> notepad
Then I got this output where I was asked to enter my password
Enter the password for <username>@<ip>:
After entering my password (which is correct), I got this output-
Attempting to start notepad as user "<username>@<ip>" ...
RUNAS ERROR: Unable to run - notepad
1326: Logon failure: unknown user name or bad password.
Any idea why I got the above output? I'm actually a dummy when it comes to
programming and scripting in windows terminals. Also, is it possible for
me to avoid the interaction part where I'm asked for password and enter it
as part of the runas command itself?

1 comment: