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