Runas 错误:无法获取密码
我正在尝试使用“RUNAS”从命令提示符启动 Visual Studio 2010,以便我可以以其他用户身份运行它。我运行了以下命令:
runas /profile /user:myPCName/SomeUserName "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"
我的问题是命令提示符显示“输入密码myPCName/SomeUserName:”但我无法输入密码。我刚刚收到错误“RUNAS ERROR:无法获取用户密码”
我用谷歌搜索了一段时间,我发现的唯一答案是我看不到输入的密码,但无论如何都输入了,而且我必须输入错误密码。我确信我没有输入错误的密码。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
实际上,我在 W7 Enterprise 上也遇到了同样的问题(连接到域,切换到本地定义的管理员用户),而没有使用以下命令进行 UAC 提升:
runas /user:.\admin cmd.exe
它确实如此提示我输入密码。
时,它也有效
当我将其显式更改为:
runas /user:%COMPUTERNAME%\admin cmd.exe
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
您忘记记录很多事情:
Serverfault.com 是询问用户身份验证的好地方。
There are so many things your forgot to document:
Serverfault.com is a good place to ask about user authentication.
我刚刚遇到这个问题。
runas /username:domain/user cmd
失败,但
runas /username:domain\user cmd
有效。所以请检查一下你的斜杠。
I just had this issue.
runas /username:domain/user cmd
failedbut
runas /username:domain\user cmd
worked.So give your slashes a check.