0
I am a beginner and am trying to understand how to use the runas command in Windows Powershell.
When I type the following command into Powershell: runas /user:\administrator cmd
I am asked to enter a password. When I do so, I am told that: "1326: Logon failure: unknown user name or bad password."
Also, when I type this command into Powershell: runas /user:AdministratorAccountName@ ComputerName
I get: RUNAS ERROR: Unable to acquire user password
I can't see the password when I type it in. But I have done it multiple times correctly and always get those messages.
Would appreciate some help on this.
Thanks!
Have you tried
runas /user:$($env:COMPUTERNAME)\Administrator cmd
? – Mathias R. Jessen – 2015-01-02T16:25:18.133or
/user:.\Administrator
. Scratch that - just tested it, Mathias' suggestion works, mine doesn't. – Jeeva – 2015-01-02T17:15:30.040