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

查看:88
本文介绍了默认情况下,如何以管理员身份运行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提示,请单击是以应用许可,以允许该程序以管理员的身份获得完全许可。 li>
  1. Right click on the shortcut of the program, then click on Properties.
  2. Click on the Shortcut tab for a program shortcut, then click on the Advanced button.
  3. Check the 'Run as administrator' box, and click on OK.
  4. Click on OK.
  5. Open the program.
  6. If prompted by UAC, then click on Yes to apply permission to allow the program to run with full permission as an Administrator.

注意:如果您是以标准用户身份而不是管理员身份登录的,则需要提供管理员密码该程序将以管理员身份运行。

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, d选择对兼容性进行故障排除。

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天全站免登陆