How to Open an Elevated PowerShell Prompt on Windows

Barbara Streisand
Release: 2024-10-16 20:04:02
Original
318 people have browsed it

遇到一些计算机错误的Windows 11/10用户可以选择在CMD或PowerShell中运行一些命令来修复问题。虽然大多数人都熟悉命令提示符并知道如何以管理员身份运行它,但似乎很少有人知道如何打开提升的 PowerShell 提示符。这是 MiniTool 的指南。

什么是提升的 PowerShell 提示符

PowerShell 提示符是一种管理和故障排除工具。它是执行命令和管理任务的网关,为您提供受控和自动功能。

提升的 PowerShell 提示符是具有提升权限的命令行界面,使您能够执行管理任务。在 Windows 操作系统领域,执行关键管理任务时通常需要提升权限。提升的 PowerShell 提示符将授予您执行需要管理权限的操作的权利,保护系统的完整性,同时确保最佳功能。因此,了解如何在 Windows 10/11 上打开提升的 PowerShell 提示符非常重要。

如何打开提升的 PowerShell 提示符

许多人都知道如何运行 PowerShell 提示符。但如何在 Windows 上打开提升的 PowerShell 提示符可能会让一些人感到困惑。您可以通过多种方式打开提升的 PowerShell 提示符。继续阅读。

方法 1:从“开始”菜单

从“开始”菜单或通过搜索框打开提升的 PowerShell 提示符是一种简单的方法。具体方法如下。

从“开始”菜单:

点击开始菜单,然后向下滚动应用程序列表,直到找到Windows PowerShell 文件夹。展开它,然后右键单击 Windows PowerShell 并选择 以管理员身份运行

使用搜索框:

Win S 组合键调出搜索框,在框中键入 Windows PowerShell,然后在右侧窗格中选择 以管理员身份运行

当UAC弹出时,点击继续。之后,会打开一个提升的 PowerShell 提示符,左上角显示“管理员”。

方法二:通过任务管理器

任务管理器不仅可以让你查看操作系统的性能系统还可以让您创建新任务。因此,您可以使用它以管理员身份运行 PowerShell 命令。步骤如下。

第 1 步:右键单击开始按钮,然后选择任务管理器将其打开。

第 2 步:进入任务管理器界面后,点击左上角的文件选项卡,选择运行新任务

第3步:当新窗口出现时出现提示时,在打开框中键入PowerShell,然后选中使用管理权限创建此任务选项,然后单击确定。然后,将打开提升的 PowerShell 提示符。

How to Open an Elevated PowerShell Prompt on Windows

方法三:使用运行对话框

运行对话框可以执行许多命令。使用它打开提升的 PowerShell 提示符是一个不错的选择。操作如下。

第一步:按Win R键或右键单击开始按钮,选择运行即可打开运行对话框。

第2步:在打开框中键入PowerShell,然后按Shift Ctrl Enter

此处将显示提升的 PowerShell 提示符。

方法 4:使用命令提示符

命令提示符是一个命令行界面程序,允许您执行各种命令、管理文件以及对 Windows 操作系统进行故障排除。您可以按照以下说明从 CMD 打开 PowerShell。

第 1 步:按 Win S 键打开 搜索 窗口,输入 命令提示符 在框中选择 以管理员身份运行

第 2 步:当 UAC 提示时,点击 继续。

步骤3: 在命令提示符窗口中,键入以下命令并按 Enter 运行它。

powershell Start-Process powershell -Verb runAs

方法 5:使用文件资源管理器

Windows powershell.exe 文件位于文件资源管理器中。您应该找到并打开该文件以以管理员身份运行 PowerShell 命令。具体操作方法如下。

第 1 步:右键单击 开始 按钮并选择 文件资源管理器 或双击 文件资源管理器 图标出现在桌面上。

第 2 步:在地址栏中键入以下路径,然后按 Enter

C:WindowsSystem32WindowsPowerShellv1.0

步骤 3:找到并右键单击 powershell.exe 文件,然后选择 以管理员身份运行

How to Open an Elevated PowerShell Prompt on Windows

Step 4: Hit the Yes button when there is a UAC window. An elevated PowerShell prompt will be displayed.

Method 6: By Control Panel

Through the Control Panel, you can view and manipulate system settings and controls. It also allows you to adjust various options. Opening an elevated PowerShell prompt is included in it. Follow the steps below.

Step 1: Press the Win R keys to open the Run dialog, type Control Panel, and hit Enter.

Step 2: Click on View by, and choose Category.

Step 3: Select System & Security > Administrative Tools.

Step 4: Right-click on the PowerShell file and choose Run as administrator.

Wrapping Things Up

This article displays a sea of ways to help you open an elevated PowerShell prompt, such as using Task Manager, Control Panel, and so on. Hope this guide can be helpful.

The above is the detailed content of How to Open an Elevated PowerShell Prompt on Windows. For more information, please follow other related articles on the PHP Chinese website!

source:minitool.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!