Runas 错误:无法获取密码

发布于 2024-09-02 07:43:40 字数 366 浏览 12 评论 0原文

我正在尝试使用“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

嘿咻 2024-09-09 07:43:40

实际上,我在 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

夜司空 2024-09-09 07:43:40

您忘记记录很多事情:

  • 您的登录提供商是什么?您是否已附加到某个域?
  • 您是从 UAC 提升的命令提示符运行此命令吗?
  • 真实的用户名是什么样的?是系统帐号吗?
  • 用户帐户是否确实存在于您的计算机上?
  • 您可以从您的计算机上以该用户身份注销并登录吗?
  • 当您断开网络连接时这也有效吗?
  • 您实际上是键入此命令还是从 .bat 或脚本调用它?
  • “无法输入密码”,您无法输入密码或密码与您输入的内容不符?

Serverfault.com 是询问用户身份验证的好地方。

There are so many things your forgot to document:

  • what is your logon provider? Are you attached to a domain?
  • are your running this from a UAC elevated command prompt?
  • what does the real user name look like? Is it a system account?
  • does the user account actually exist on your machine?
  • can you logout and logon as that user from your machine?
  • does that also work when you disconnect from the network?
  • do you actually type this command or is it called from a .bat or script?
  • "cannot enter the password", you can't type it or it doesn't like what you typed?

Serverfault.com is a good place to ask about user authentication.

深居我梦 2024-09-09 07:43:40

我刚刚遇到这个问题。

runas /username:domain/user cmd 失败,

runas /username:domain\user cmd 有效。

所以请检查一下你的斜杠。

I just had this issue.

runas /username:domain/user cmd failed

but

runas /username:domain\user cmd worked.

So give your slashes a check.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文