Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Runas Error: Unable to Acquire Password

I'm trying to start visual studio 2010 from command prompt using 'RUNAS' so that I can run it as a different user. I ran the following command:

runas /profile /user:myPCName/SomeUserName "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"

My problem is that the commandprompt says "Enter the password for myPCName/SomeUserName:" but I cannot enter the password. I just get the error "RUNAS ERROR: Unable to acquire user password"

I googled this for a while and the only answer I found was that I cannot see the password entered, but it is entered anyways, and that I must be typing the wrong password. I'm certain I'm not typing the wrong password.

like image 610
John Fischer Avatar asked May 18 '10 16:05

John Fischer


People also ask

How do you enter a password on runas?

The runas command does not allow a password on its command line. This is by design (and also the reason you cannot pipe a password to it as input). Raymond Chen says it nicely: The RunAs program demands that you type the password manually.

What is the runas command for administrator?

With the runas command, you can run programs (*.exe), saved MMC consoles (*. msc), shortcuts to programs and saved MMC consoles, and Control Panel items. You can run them as an administrator while you are logged on to your computer as a member of another group, such as the Users or Power Users group.

What is Windows runas?

In computing, runas (a compound word, from “run as”) is a command in the Microsoft Windows line of operating systems that allows a user to run specific tools and programs under a different username to the one that was used to logon to a computer interactively.

What is runas Savecred?

Under windows 7, the runas/savecred (interactive logon) credential is saved in a HIDDEN file in the directory c:\users\username\appdata\roaming\microsoft\credentials. If you move this file out of this directory, the credential is not displayed in the Windows credential manager.


1 Answers

Actually, I had the same problem with W7 Enterprise (connected to a domain, switching to a locally defined admin user) without UAC elevation with the command:

runas /user:.\admin cmd.exe

It did prompt me for the password.

It also worked when I changed it explicitly to:

runas /user:%COMPUTERNAME%\admin cmd.exe

like image 80
Eelco L. Avatar answered Sep 18 '22 03:09

Eelco L.