我们之前在我们的帖子Create a Command Prompt Shortcut with Admin Rights中写过关于创建快捷方式以运行具有管理员权限的命令提示符窗口的内容。如果您需要运行需要管理员权限的程序,有几种方法可以做到这一点。有时,如果程序报告“拒绝访问”(Access Denied)错误或“无权限(No Permission)”错误,您可能需要以管理员身份运行程序。
如果您在以标准用户而非管理员身份登录时使用本文中的任何方法以管理员身份运行程序,则必须在程序运行前在用户访问控制(User Access Control)( UAC ) 对话框中输入管理员密码作为管理员。
注意:(NOTE:)请注意您以管理员身份运行的程序。确保您信任该程序。一旦您应用了管理员和UAC权限,该程序就可以完全访问您的计算机。
使用键盘快捷键
要使用键盘快捷键以管理员身份运行程序,请在打开程序时按Ctrl + Shift
注意:(NOTE:)此方法允许您以管理员身份临时运行程序,仅适用于程序的当前实例,直到您关闭它。
如果显示UAC对话框,请单击是以(Yes)允许程序以完全管理权限运行。
使用程序的上下文菜单
您还可以使用程序的上下文菜单以管理员身份运行程序。为此,请右键单击程序的快捷方式或.exe文件,然后从弹出菜单中选择以管理员身份运行。(Run as administrator)
注意:(NOTE:)此方法允许您以管理员身份临时运行程序,仅适用于程序的当前实例,直到您关闭它。
如果显示UAC对话框,请单击是以(Yes)允许程序以完全管理权限运行。通常,当您必须打开管理员(Administrator)命令提示符时使用此方法。
(Use Compatibility Mode)使用程序的兼容模式(Program)
要使用兼容模式(Compatibility Mode)以管理员身份运行程序,请右键单击程序的快捷方式或程序的.exe文件,然后从弹出菜单中选择属性。(Properties)
注意:(NOTE:)此方法允许您在打开所选程序时始终以管理员身份运行它。
单击兼容性(Compatibility)选项卡。如果您以管理员用户身份登录,请在“权限级别”框中选中“(Privilege Level)以管理员身份运行此程序”(Run this program as an administrator )复选框,因此该框中有一个复选标记。但是,如果您以标准用户身份登录,则以管理员身份运行此程序(Run this program as an administrator )复选框不可用。要以标准用户身份打开此设置,请单击更改所有用户(Change settings for all users)的设置按钮。
“属性(Properties)”对话框更改为仅包含“所有用户的兼容性”(Compatibility for all users)选项卡。在特权级别(Privilege Level)框中,选中以管理员身份运行此程序(Run this program as an administrator)复选框,因此该框中有一个复选标记。单击(Click) 确定(OK)。
您将返回到标准属性(Properties)对话框上的兼容性选项卡。(Compatibility)单击确定(OK)将其关闭。如果显示UAC对话框,请单击是以(Yes)允许程序以完全管理权限运行。
下次打开程序时,它将以管理员身份运行。
(Use Advanced Properties)使用程序快捷方式的(Shortcut)高级属性
要更改程序快捷方式的属性以允许您以管理员身份运行程序,请右键单击程序的快捷方式。显示属性(Properties)对话框。单击快捷方式(Shortcut)选项卡(如果尚未激活),然后单击高级(Advanced)按钮。
注意:(NOTE:)此方法允许您在打开所选程序时始终以管理员身份运行它。
将显示“高级属性(Advanced Properties)”对话框。选中以管理员身份运行(Run as administrator)复选框,因此该框中有一个复选标记。单击(Click) 确定(OK)。
您将返回到“属性(Properties)”对话框上的“快捷方式(Shortcut)”选项卡。单击确定(OK)将其关闭。
下次打开程序时,它将以管理员身份运行。请记住在以管理员身份运行程序时要小心,以及在考虑是否允许您计算机的其他标准用户管理员访问时要小心。享受!
Run Programs as Administrator with Full Rights in Windows
We have previously written about creating a shortcut to run a command prоmpt window with administrator rights in our post, Create a Command Prompt Shortcut with Admin Rightѕ. If you need to run a program that reqυires administrator rights, there are several methods for doing this. Sometimes you may need to run a program as administrator if it is reporting an Access Denied error or No Permission error.
If you are using any of the methods in this post for running programs as administrator while logged in as a standard user instead of as an administrator, you must enter the administrator’s password on the User Access Control (UAC) dialog box before the program will run as administrator.
NOTE: Be careful which programs you run as administrator. Be sure you trust the program. Once you have applied administrator and UAC permission, the program has full access to your computer.
Use a Keyboard Shortcut
To run a program as administrator using a keyboard shortcut, press Ctrl + Shift while opening the program.
NOTE: This method allows you to run a program temporarily as administrator, only for the current instance of the program, until you close it.
If the UAC dialog box displays, click Yes to allow the program to run with full administrative privileges.
Use the Program’s Context Menu
You can also use the program’s context menu to run the program as administrator. To do this, right-click on the program’s shortcut or .exe file and select Run as administrator from the popup menu.
NOTE: This method allows you to run a program temporarily as administrator, only for the current instance of the program, until you close it.
If the UAC dialog box displays, click Yes to allow the program to run with full administrative privileges. Normally, this method is used when you have to open an Administrator command prompt.
Use Compatibility Mode for the Program
To use the Compatibility Mode to run the program as administrator, right-click on the shortcut for the program or on the program’s .exe file and select Properties from the popup menu.
NOTE: This method allows you always to run the selected program as administrator when you open it.
Click the Compatibility tab. If you are logged in as an administrator user, select the Run this program as an administrator check box in the Privilege Level box, so there is a check mark in the box. However, if you are logged in as a standard user, the Run this program as an administrator check box is unavailable. To turn on this setting as a standard user, click the Change settings for all users button.
The Properties dialog box changes to contain only the Compatibility for all users tab. In the Privilege Level box, select the Run this program as an administrator check box, so there is a check mark in the box. Click OK.
You are returned to the Compatibility tab on the standard Properties dialog box. Click OK to close it. If the UAC dialog box displays, click Yes to allow the program to run with full administrative privileges.
The next time you open the program, it will run as administrator.
Use Advanced Properties for the Program’s Shortcut
To change the properties of the program’s shortcut to allow you to run the program as administrator, right-click on the program’s shortcut. The Properties dialog box displays. Click the Shortcut tab, if it is not already active, and click the Advanced button.
NOTE: This method allows you always to run the selected program as administrator when you open it.
The Advanced Properties dialog box displays. Select the Run as administrator check box, so there is a check mark in the box. Click OK.
You are returned to the Shortcut tab on the Properties dialog box. Click OK to close it.
The next time you open the program, it will run as administrator. Remember to be careful when running programs as administrator, and when considering whether to allow other standard users of your computer administrator access. Enjoy!