无法以其他用户身份启动Visual Studio 2015 [英] Unable to launch Visual Studio 2015 as a different user

查看:273
本文介绍了无法以其他用户身份启动Visual Studio 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了限制我自己的破坏力,我有两个域帐户,一个用于正常工作,一个用于TFS管理员.多年来,我一直在使用以其他用户身份运行功能来在需要执行管理工作时以另一个admin帐户打开另一个Visual Studio窗口.这两个用户都是本地管理员组的成员.

In order to limit my own destructive powers, I have two domain accounts, one for normal work and one for TFS admin stuff. For years I have been using the Run as different user feature for opening another Visual Studio window as my admin account whenever I need to do admin stuff. Both users is members of the local administrator group.

大约一个月前,它停止工作,导致出现以下对话框,而不是启动Visual Studio.这两个选项均不执行任何操作-不启动Visual Studio.建议的链接 http://go.microsoft.com/fwlink/?LinkId=659046,请参阅Visual Studio的旧版本:2005、2008和2010.我安装了Visual Studio 2015 Update 3,带有最新的累积服务更新.

About a month ago this stopped working resulting in the below dialog instead of launching Visual Studio. Both option does nothing - no Visual Studio launches. The suggested link http://go.microsoft.com/fwlink/?LinkId=659046, refer to older Visual Studio versions: 2005, 2008 and 2010. I have Visual Studio 2015 Update 3 installed with the latest cumulative servicing update.

我感觉它是在安装Windows 10 1607(周年更新)之后-在安装Windows 10 1511之前开始的,但是我不确定是由其他因素引起的.可以以admin用户身份打开命令提示符,但是从此处启动Visual Studio会产生相同的对话框.我已经在另一台具有1607的计算机上尝试了相同的结果,但仍然可以在具有1511的计算机上运行.我也与另一位用户进行了尝试,但是结果还是一样.

I have a feeling that it started after I installed Windows 10 1607 (Anniversary Update) - before I had Windows 10 1511, but I am not sure that something else caused the change. It is possible to open a command prompt as but admin user, but launching Visual Studio from here results in the same dialog. I have tried on another machine with 1607 with same result, and I can still get it to work on a machine with 1511. I have also tried with another user, but again the result is the same.

一种解决方法是使用Windows的切换用户"功能,但这使得不可能有一个窗口,例如当我的普通用户来回切换时,Outlook打开.

A workaround is using the Switch User feature of Windows but this makes it impossible to have a window e.g. Outlook open as my normal user switching back and forth.

关于如何解决这个问题的任何建议?

Any suggestion on how to get around this?

推荐答案

尝试使用以下命令运行Visual Studio:

Try to run Visual Studio using this command instead:

runas /netonly /user:<account> devenv.exe

这足以在另一个Windows用户的上下文中使用Visual Studio,以便它可以使用不同的凭据连接到远程TFS.

This should be enough to have Visual Studio under a context of another Windows user so it can connect to remote TFS with different credentials.

我以这种不同的用户身份运行SQL Server Management Studio,因此我可以管理来自不同Windows域的远程SQL Server.

I'm running the SQL Server Management Studio as different user this way so I can manage remote SQL servers from different Windows domains.

PS:我尝试在Windows 10版本1607上以不同的Windows帐户(没有管理员权限的标准用户帐户)运行Visual Studio 2015 Update 3,并且收到有关管理员权限的相同警告.

PS: I tried to run Visual Studio 2015 Update 3 on Windows 10 version 1607 as different Windows account (standard user account without admin rights) and I got the same warning about the admin rights.

这篇关于无法以其他用户身份启动Visual Studio 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆