在Windows 11中以管理员身份运行(run as administrator)意味着以提升的权限启动应用程序。为了防止对操作系统(operating system)进行未经授权的更改,Windows 11应用程序和游戏(apps and games)默认以标准权限启动,但某些程序(如安全软件(security software))需要管理员权限才能正确运行或执行特定任务。幸运的是,这个过程很简单:您只需要管理员凭据和我们的说明即可。阅读本指南以了解如何在Windows 11中以(Windows 11)管理员(Administrator)身份运行:
注意:(NOTE:)使用本指南中的大多数方法以管理员身份运行会触发UAC 提示(UAC prompt),要求进一步确认,如果您使用普通帐户启动应用程序,则需要管理员密码(administrator password)。
1.如何从应用程序的固定开始菜单快捷方式以管理员身份运行(Start Menu shortcut)
在Windows 11中,您可以使用任何固定应用的上下文菜单以管理权限运行它。首先,打开Windows 11 开始菜单并在(Start Menu)固定(Pinned)部分中找到您要启动的应用程序。接下来,右键单击或按住它以打开其上下文菜单,然后单击或点击“以管理员身份运行(“Run as administrator)。”
从固定应用的上下文菜单中选择以管理员身份运行(Run)
或者,您也可以按住键盘上的Ctrl和Shift键,keyboard and click/tap要在Windows 11中以管理员身份运行的应用程序,或使用键盘突出显示它,然后使用Ctrl + Shift + Enter键盘快捷键启动它。
Use Ctrl + Shift + Enter在突出显示的固定应用上使用 Ctrl + Shift + Enter
提示:(TIP:)如果您喜欢这种方法,您可能有兴趣了解有关将应用程序固定到Windows 11 开始菜单(Start Menu)的更多信息。
2. 使用Windows 11(Windows 11)开始菜单的(Start Menu)所有(All)应用列表中的快捷方式以管理员身份运行程序
开始菜单(Start Menu)的所有应用(All apps)部分也可用于在Windows 11中以管理员身份运行。首先(First),打开开始菜单(Start Menu)并访问所有应用程序(All apps)。
访问Windows 11中的(Windows 11)所有(All)应用列表
在列表中找到程序的快捷方式,然后右键单击或按住它以打开上下文菜单。接下来,单击、点击或将鼠标悬停在“更多”(More)选项上,然后按“以管理员身份运行”。(“Run as administrator.”)
从快捷方式的上下文菜单中选择以管理员身份运行(Run)
或者,您可以按住键盘上的Ctrl和Shift键,然后单击(keyboard and click)或点击要在Windows 11中以管理员身份运行的应用程序。
(Use Ctrl and Shift)在要以管理员身份运行的应用程序上使用 Ctrl 和 Shift
3.如何从应用程序的快捷方式以管理员身份运行
如果您想在桌面或其他任何地方以管理员身份运行应用程序的快捷方式,则可以打开其右键菜单。然后,单击或点击(click or tap)“以管理员身份运行(“Run as administrator)。”
按上下文菜单中的以管理员身份运行(Run)
4.从其任务栏快捷方式以管理员身份运行应用程序(taskbar shortcut)
在Windows 11中,以管理员权限运行应用程序的另一种方法是通过其任务栏快捷方式(taskbar shortcut)。首先(First),右键单击或按住快捷方式。接下来,右键单击或再次按住程序名称。最后,单击或点击(click or tap)此菜单中的“以管理员身份运行”(“Run as administrator”)。
在Windows 11(Windows 11)中使用任务栏快捷方式(taskbar shortcut)以管理员身份运行
您还可以按住Ctrl + ShiftWindows 11中以管理员权限运行它。
(Use Ctrl and Shift)在要以管理员身份运行的应用程序上使用 Ctrl 和 Shift
提示:(TIP:)要将应用固定到任务栏,请阅读我们关于在Windows 11中向任务栏添加快捷方式的指南。
5. 如何从可执行文件的上下文菜单中以管理员身份运行
虽然快捷方式很容易找到,但您也可以从主可执行文件的上下文菜单中以管理员身份在Windows 11中运行程序。(Windows 11)在File Explorer中,导航到应用的可执行文件。右键单击或按住它以打开上下文菜单,然后单击或点击“以管理员身份运行(“Run as administrator)。”
单击(Click)或点击以管理员身份运行(Run)
6. 使用Windows 11(Windows 11) 搜索(Search)以管理员身份运行程序
首先,使用Windows 11 搜索(Search)查找要以管理员身份运行的程序。在右侧窗格中,单击或点击(click or tap)“以管理员身份运行(“Run as administrator)。”
对于CMD,以管理员身份(administrator option)运行(Run)选项立即可用
如果在右窗格中看不到该选项,请使用向下箭头展开选项列表。
使用向下箭头显示以管理员身份(administrator option)运行选项(Run)
或者,右键单击或按住正确的搜索结果,然后单击(search result and click)或点击上下文菜单中的“以管理员身份运行”(“Run as administrator”)。
按上下文菜单中的以管理员身份运行(Run)
您还可以使用箭头键在左窗格中突出显示相应的搜索结果。(search result)然后,使用Ctrl + Shift + Enter 键盘快捷键(keyboard shortcut)以管理员身份运行该程序。
Use Ctrl + Shift + Enter在突出显示的搜索结果上(search result)使用 Ctrl + Shift + Enter
7. 如何在 Windows 11 上以管理员身份从“运行”窗口运行(Run window)
首先,打开“运行”窗口(Run window)并插入要以管理员身份运行的程序的可执行文件的名称。
在“运行”窗口(Run window)中键入可执行文件的名称
然后,按住键盘上的Ctrl和Shift并单击/点击OK或Enter键。
Use Ctrl + Shift + Enter以管理员身份启动应用程序
8.从任务管理器以管理员身份(Task Manager)运行(Run)
您还可以使用任务管理器在(Task Manager)Windows 11中以管理员身份启动程序。首先(First),启动任务管理器(Task Manager),如果它在其紧凑视图中打开,请单击或点击(click or tap)更多详细信息(More details)。
单击或点击更多详细信息
从左上角打开“文件(File)”菜单,然后单击(corner and click)或点击“运行新任务”(“Run new task)。”
(Access Run)从文件菜单(File menu)访问运行新任务
在“创建新任务”(“Create new task”)窗口中,使用“打开(Open)”字段输入要以管理员身份启动的程序的路径,或者单击或点击(click or tap)“浏览(Browse)”以导航到它。确保选中“使用管理权限创建此任务”(“Create this task with administrative privileges”)选项,然后单击或点击确定(OK)。
输入(Enter)程序的路径,选中该框,然后单击“确定”
提示:(TIP:)使用这种以管理员身份启动程序的方法可以让您跳过该过程的UAC部分,因为该应用程序会自动继承任务管理器(Task Manager)的权限——在我们的例子中是管理员权限。如果您在设备上只有标准用户权限,则该复选框会丢失。
9. 使用Windows Terminal、PowerShell或CMD在Windows 11中以管理员身份运行(Windows 11)
如果您喜欢命令行环境,请访问Windows 终端(Windows Terminal)、PowerShell或命令提示符(Command Prompt)以管理员身份运行程序。在Windows 终端(Windows Terminal)、CMD或PowerShell 窗口(PowerShell window)中输入以下命令:
runas your_computer_name\administrator_name " C:\path\program.exe _
将your_computer_name替换为您的计算机名称,将administrator_name替换为对您的系统具有管理员权限的用户帐户(user account)的名称,并将C:\path\program.exe替换为您要以管理员身份运行的应用程序的完整路径。如果正确输入命令,系统会提示您输入管理员密码。然后,再次按键盘上的Enter 。
从Windows 终端(Windows Terminal)以管理员身份运行程序
提示:(TIP:)此方法更复杂,但您可以跳过该过程的UAC部分。
10. 始终以管理员权限运行程序
要将程序设置为始终以管理权限运行,首先,找到其主可执行文件。右键单击或按住它,然后单击或点击属性(Properties)。
右键单击并访问属性
在“兼容性”选项卡中,选中(Compatibility)“以管理员身份运行此程序”(“Run this program as an administrator”)旁边的框,然后单击或点击“应用(Apply)”或“确定(OK)” 。
启用以管理员身份运行的选项,然后按 OK(admin and press OK)
应用此设置,并且从现在开始,程序始终以管理员权限运行。
提示:(TIP: )您也可以通过编辑程序快捷方式的属性来获得相同的结果。(Properties)
11. 使用Windows 任务计划程序(Windows Task Scheduler)运行具有管理权限的程序
您可以使用任务计划(Task Scheduler)程序以管理员身份运行程序,而无需UAC(用户帐户控制)( UAC (User Account Control))提示。这个过程很简单,您可以从这个分步指南中学习如何使用Windows 任务计划(Windows Task Scheduler)程序在没有UAC提示的情况下运行应用程序。
任务计划程序(Task Scheduler)可以以管理员身份运行程序
您更喜欢哪种方式以管理员身份运行?(Run)
在Windows 11(Windows 11)中,实际上很少有程序需要提升权限。但是,当您确实需要运行具有管理权限的应用程序时,上述 11 种方法对于那些极少数情况应该绰绰有余。在您关闭本指南之前,请让我们知道您打算使用哪种方法。你(Did)已经使用了其中的一些吗?在评论中告诉我们。
How to Run as administrator in Windows 11: 11 ways -
To run as administrator in Windows 11 means launching an application with elevated privileges. To prevent unauthorized changes to the operating system, Windows 11 apps and games start, by default, with standard permissions, but there are certain programs, like security software, that require admin rights to run correctly or perform specific tasks. Luckily, the process is easy: all you need are administrator credentials and our instructions. Read this guide to learn how to run as Administrator in Windows 11:
NOTE: Using most of the methods in this guide to run as administrator triggers a UAC prompt asking for further confirmation and, if you’re launching an app using a regular account, an administrator password.
1. How to Run as administrator from an app’s pinned Start Menu shortcut
In Windows 11, you can use the contextual menu of any pinned app to run it with administrative permissions. To begin, open the Windows 11 Start Menu and find the app you want to launch in the Pinned section. Next, right-click or press and hold on it to open its contextual menu, and then click or tap on “Run as administrator.”
Choose Run as administrator from a pinned app's contextual menu
Alternatively, you can also hold down the Ctrl and Shift keys on your keyboard and click/tap on the app you want to run as administrator in Windows 11, or use your keyboard to highlight it and then the Ctrl + Shift + Enter keyboard shortcut to launch it.
Use Ctrl + Shift + Enter on the highlighted pinned app
TIP: If you like this method, you may be interested in learning more about pinning apps to the Windows 11 Start Menu.
2. Run a program as admin using its shortcut from the All apps list of the Windows 11 Start Menu
The All apps section of the Start Menu can also be used to run as administrator in Windows 11. First, open the Start Menu and access All apps.
Access the All apps list in Windows 11
Find the program's shortcut in the list, and right-click or press-and-hold on it to open a contextual menu. Next, click, tap, or hover over the More option, and then press on “Run as administrator.”
Choose Run as administrator from the shortcut's contextual menu
Alternatively, you can hold down Ctrl and Shift on your keyboard and click or tap on the app you want to run as administrator in Windows 11.
Use Ctrl and Shift on the app you want to run as administrator
3. How to Run as administrator from an app’s shortcut
If you have a shortcut for the app you want to run as admin on your desktop or anywhere else, you can open its right-click menu. Then, click or tap on the “Run as administrator.”
Press Run as administrator from the contextual menu
4. Run an app as administrator from its taskbar shortcut
In Windows 11, another way to run an app with administrator permissions is from its taskbar shortcut. First, right-click or press-and-hold on the shortcut. Next, right-click or press-and-hold again on the program’s name. Finally, click or tap on “Run as administrator” from this menu.
Use a taskbar shortcut to run as administrator in Windows 11
You can also hold down Ctrl + Shift and click/tap on an app’s taskbar shortcut to run it with administrator permissions in Windows 11.
Use Ctrl and Shift on the app you want to run as administrator
TIP: To pin an app to the taskbar, read our guide about adding shortcuts to the taskbar in Windows 11.
5. How to run as administrator from an executable’s contextual menu
While shortcuts are easy to find, you can also run a program as administrator in Windows 11 from the main executable file's contextual menu. In File Explorer, navigate to the app’s executable file. Right-click or press-and-hold on it to open the contextual menu, and then click or tap on “Run as administrator.”
Click or tap on Run as administrator
6. Run a program as admin using the Windows 11 Search
First, use the Windows 11 Search to find the program you want to run as admin. On the right pane, click or tap on “Run as administrator.”
For CMD, the Run as administrator option is immediately available
If you don’t see the option in the right pane, use the down arrow to expand the list of options.
Use the arrow down to reveal the Run as administrator option
Alternatively, right-click or press-and-hold on the correct search result and click or tap on “Run as administrator” from the contextual menu.
Press Run as administrator from the contextual menu
You can also use the arrow keys to highlight the appropriate search result in the left pane. Then, use the Ctrl + Shift + Enter keyboard shortcut to run that program as administrator.
Use Ctrl + Shift + Enter on the highlighted search result
7. How to run as administrator on Windows 11 from the Run window
First, open the Run window and insert the name of the executable for the program you want to run as admin.
Type the name of the executable in the Run window
Then, hold down Ctrl and Shift on your keyboard and click/tap OK or the Enter key.
Use Ctrl + Shift + Enter to launch the app as administrator
8. Run as admin from the Task Manager
You can also launch a program as administrator in Windows 11 by using the Task Manager. First, start the Task Manager and, if it opens up in its compact view, click or tap on More details.
Click or tap on More details
Open the File menu from the upper-left corner and click or tap on “Run new task.”
Access Run new task from the File menu
In the “Create new task” window, use the Open field to enter the path to the program you want to launch as administrator, or click or tap on Browse to navigate to it. Make sure to check the “Create this task with administrative privileges” option, and then click or tap on OK.
Enter the path to the program, check the box, and hit OK
TIP: Using this method of launching programs as administrator lets you skip the UAC part of the process because the app automatically inherits the permissions of the Task Manager - in our case, administrator permissions. If you only have standard user permissions on the device, the checkbox is missing.
9. Use Windows Terminal, PowerShell, or CMD to run as administrator in Windows 11
If you like command-line environments, access Windows Terminal, PowerShell, or Command Prompt to run a program as administrator. Enter the following command in the Windows Terminal, CMD, or PowerShell window:
runas /user:"your_computer_name\administrator_name" "C:\path\program.exe"
Replace your_computer_name with your computer's name, administrator_name with the name of a user account with administrator permissions on your system, and C:\path\program.exe with the complete path to the app you want to run as administrator. If you enter the command correctly, you are prompted to enter the administrator's password. Then, press Enter on your keyboard once again.
Run a program as administrator from Windows Terminal
TIP: This method is more complicated, but you get to skip the UAC part of the process.
10. Always run a program with administrator permissions
To set a program to always run with administrative permissions, first, locate its main executable file. Right-click or press-and-hold on it, and then click or tap Properties.
Right-click and access Properties
In the Compatibility tab, check the box next to “Run this program as an administrator” and click or tap on Apply or OK.
Enable the option to run as admin and press OK
This setting is applied, and, from now on, the program always runs with administrator permissions.
TIP: You can also get the same result by editing the Properties of a program's shortcut.
11. Use the Windows Task Scheduler to run a program with administrative permissions
You can use the Task Scheduler to run a program as administrator without the UAC (User Account Control) prompt. The process is simple, as you can learn from this step-by-step guide on using the Windows Task Scheduler to run apps without UAC prompts.
Task Scheduler can run a program as administrator
Which way to Run as administrator do you prefer?
Very few programs actually require elevated privileges in Windows 11. However, the eleven methods above should be more than enough for those rare cases when you do need to run an app with administrative permissions. Before you close this guide, let us know which method(s) you plan to use. Did you already use some of them? Let us know in a comment.