默认情况下如何以管理员身份运行 Visual Studio? [英] How do I run Visual Studio as an administrator by default?

查看:53
本文介绍了默认情况下如何以管理员身份运行 Visual Studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现,即使以管理员身份登录到我的个人笔记本电脑,Visual Studio 也不会以管理员模式运行,您需要明确使用以管理员身份运行.

I recently discovered that even while logged into my personal laptop as an administrator, Visual Studio does not run in administrator mode and you need to explicitly use Run As Administrator.

除了创建快捷方式等,有没有办法让它默认以管理员身份运行?

Is there a way to make it run as an administrator by default, other than creating a shortcut, etc.?

推荐答案

复制粘贴自 此处使用高级属性部分.这将允许您在打开程序时始终以管理员身份运行该程序.

Copied and pasted from here, the Using Advanced Properties section. This will allow you to always have the program run as an administrator when you open it.

Windows 7:

  1. 右键单击程序的快捷方式,然后单击属性".
  2. 单击程序快捷方式的快捷方式"选项卡,然后单击高级"按钮.
  3. 选中以管理员身份运行"框,然后单击确定".
  4. 点击确定.
  5. 打开程序.
  6. 如果 UAC 提示,则单击是"以应用权限以允许程序以管理员身份以完全权限运行.

注意:如果您是在以标准用户而不是管理员身份登录时执行此操作,则您需要在程序以管理员身份运行之前提供管理员密码.

NOTE: If you are doing this is while logged in as standard user instead of an administrator, then you will need to provide the administrator's password before the program will run as administrator.

更新:(2015-07-05)

Update: (2015-07-05)

在 Windows 8 中,您必须右键单击 devenv.exe 并选择兼容性疑难解答".

In Windows 8, you have to right-click devenv.exe and select "Troubleshoot compatibility".

  1. 选择程序疑难解答"

  1. Select "Troubleshoot program"

勾选程序需要额外权限"点击下一步",点击测试程序..."

Check "The program requires additional permissions" click "Next", click "Test the program..."

等待程序启动

点击下一步"

选择是,保存此程序的这些设置"

Select "Yes, save these settings for this program"

点击关闭"

更新参考原文 链接

这篇关于默认情况下如何以管理员身份运行 Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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