特权级别-以管理员身份运行应用程序 [英] Privilege Level - Run Application as Administrator

查看:264
本文介绍了特权级别-以管理员身份运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行的应用程序Windows Vista上进行测试时,我遇到了一些触发特权级别的因素.

现在我正在Vista上运行Visual Studio 2008,并希望编译我的项目,这可能会对注册表进行更改.所以我确实得到了

Now i am running Visual Studio 2008 on Vista and would like to compile my project which might makes changes to the registry. So i do get something like

错误:

错误1错误RA0000:将注册信息写入注册表时发生错误.您必须具有管理凭据才能执行此任务.请与系统管理员联系以寻求帮助RegAsm SKFDev

Error 1 error RA0000 : An error occurred while writing the registration information to the registry. You must have administrative credentials to perform this task.  Contact your system administrator for assistance RegAsm SKFDev


所以我要配置的是右键单击 Visual Studio 图标,选择属性,转到兼容性然后启用以管理员身份运行该程序".在普通用户模式下.


So what i configure is right-click the visual studio icon, select properties, go to compatibility, then enable 'Run this program as an administrator.' in Normal user mode.

,我发现该复选框已被禁用.如果我处于管理员模式,则可以选中该复选框.

And i found that the checkbox has been disable. If i am on Administrator mode, the checkbox are enable to select.

我希望能够使Visual Studio 2008在普通用户模式下以管理员模式运行.如果碰巧出现一些提示用户输入管理员凭据等的提示.

What i would like is being able to make the Visual Studio 2008 run with administrator mode from normal user mode. If it happens to appear some user prompting for admin credentials and etc.

推荐答案

在导航到VS08后,从开始"菜单中,如果您右键单击->以管理员身份运行,如果登录的用户不是管理员,则提升过程将提示您输入管理员凭据.

From the Start menu, after navigating to VS08, if you right-click -> Run as administrator, the elevation process will prompt you for admin credentials if the logged user is not an admin.

致谢

埃里克


这篇关于特权级别-以管理员身份运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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