如何配置Visual Studio在每次运行时都不给UAC提示? [英] How to configure Visual Studio not to give UAC prompt on each run?

查看:70
本文介绍了如何配置Visual Studio在每次运行时都不给UAC提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近切换到了Vista,我想保持UAC的开启状态,因为我同意它可以大大提高计算机的安全性.我经常使用的某些开发人员工具要求运行提升权限:

  • 用于Windows的PIX
  • Visual Studio 2005(用于调试和IncrediBuild正常工作似乎需要特权)
  • 已映射和已添加驱动器:提升的进程似乎看不到我已在用户帐户中映射的驱动器. 此文章描述了该问题,但是我不确定如何实现它的最终建议来在提升的登录名的上下文中映射这些驱动器" .

我尝试了许多发现的建议,兼容性管理员看起来很有前途,但结果仍然不是我想要的.当我使用RunAsInvoker时,没有UAC提示,但是Visual Studio无法正常工作.当我使用RunAsAdmin或RunAsHighest时,它可以工作,但是有提示.

有什么方法可以教UAC记住某些特定的应用程序应始终在提升状态下运行,并且永远不会提示我有关此信息,或者有其他方法如何让我在没有提示的情况下启动VS提升状态?如果无法执行此操作,是否存在某些无法执行此操作的安全原因?

解决方案

我也不得不为我的2008 dev系统关闭UAC,尽管有人希望使用它.为了跟踪窗口之间的拖放工作,与远程系统进行交互,调试场景或执行许多其他任务,需要跟踪每个应用程序的运行上下文实在是太痛苦了.从理论上讲,UAC是一个好主意,但是似乎很少投入精力使其对实际的电力用户有用,直到最后,唯一可行的解​​决方案是完全禁用它./p>

据称Windows 7将消除持续不断的提示会更好一些,但是除非它们确实能够解决所有的跨应用程序和远程访问问题,否则对于除新手用户以外的任何人来说,它都将是初学者.希望他们最终能够使它真正可用.

I have switched to Vista recently and I wanted to keep UAC turned on, as I agree it increases computer security a lot. Some developer tools I use regularly require running elevated:

  • PIX for Windows
  • Visual Studio 2005 (elevated privileges seem to be needed for debugging and for IncrediBuild to work)
  • mapped and substed drives: The elevated process does not seem to see the drives I have mapped in my user account. This article describes the problem, but I am not sure how could I implement its final suggestion to "map these drives in the context of the elevated login".

I have experimented with many suggestions I have found, Compatibility Administrator seemed quite promising, but the result was still not what I wanted. When I used RunAsInvoker, there was no UAC prompt, but the Visual Studio did not work. When I used RunAsAdmin or RunAsHighest, it worked, but there was the prompt.

Is there any way how to teach UAC to remember some particular application should always run elevated and never prompt me about this, or some other way how to allow me launching VS elevated without the prompt? If there is no way to do it, does there exist some security reason why it cannot be done?

解决方案

I've had to turn UAC off for my 2008 dev system also, despite similar feelings about wanting to be able to use it. It's just too painful to need to keep track of the running context of every single application in order for things like drag/drop between windows to work, or interacting with remote systems, or debugging scenarios, or any number of other tasks. UAC was a good idea in theory, but there seems to have been so little effort put in to making it functionally useful for real-world power users, that at the end of the day, the only feasible solution is to disable it entirely.

Windows 7 will purportedly be somewhat better with eliminating the constant prompts, but unless they really work to address all the cross-application and remote access issues, it's still going to be a non-starter for anyone other than novice users. Here's to hoping they eventually get it to be actually usable.

这篇关于如何配置Visual Studio在每次运行时都不给UAC提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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