以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

时间:2024-03-30 17:52:13
以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

以管理员身份打开命令提示符

以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

Much of the time, opening the Command Prompt as a regular user is all you need. Sometimes, though, you’ll need to open the Command Prompt as an administrator so that you can run commands that require administrative privileges.

通常,您只需要以普通用户身份打开命令提示符即可。 但是,有时,您需要以管理员身份打开命令提示符,以便您可以运行需要管理特权的命令。

Windows offers a lot of different ways to open the Command Prompt, and with a lot of those methods you can also open the Command Prompt with admin privileges. We’ve shown you previously how to do this in Windows 7 and Vista, so here we’re going to focus on three quick ways you can open the Command Prompt with admin privileges in Windows 8 and 10.

Windows提供了许多不同的方法来打开命令提示符 ,并且通过许多方法,您还可以使用管理员权限来打开命令提示符。 之前,我们已经向您展示了如何在Windows 7和Vista中执行此操作,因此,我们将重点介绍三种快速的方法,这些方法可以在Windows 8和10中使用管理员权限打开命令提示符。

选项一:使用高级用户(Windows + X)菜单 (Option One: Use the Power Users (Windows+X) Menu)

Both Windows 8 and 10 offer a Power Users menu that you can access by pressing Windows+X or just right-clicking the Start button. On the Power Users menu, choose “Command Prompt (Admin).”

Windows 8和10都提供了“高级用户”菜单,您可以通过按Windows + X或右键单击“开始”按钮来访问。 在“高级用户”菜单上,选择“命令提示符(管理员)”。

以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

Note: If you see PowerShell instead of Command Prompt on the Power Users menu, that’s a switch that came about with the Creators Update for Windows 10. It’s very easy to switch back to showing the Command Prompt on the Power Users menu if you want, or you can give PowerShell a try. You can do pretty much everything in PowerShell that you can do in Command Prompt, plus a lot of other useful things.

注意 :如果您在Power Users菜单上看到PowerShell而不是Command Prompt,那是Windows 10Creators Update附带的开关。 如果需要,可以很容易地切换回在“高级用户”菜单上显示命令提示符 ,或者可以尝试使用PowerShell。 您可以在PowerShell中完成几乎可以在命令提示符中执行的所有操作,以及许多其他有用的操作。

When you launch the Command Prompt with admin privileges, you’ll likely see a “User Account Control” window asking for permission to continue. Go ahead and click “Yes.”

当您以管理员权限启动命令提示符时,可能会看到“用户帐户控制”窗口,要求继续操作。 继续并单击“是”。

以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

Once you’ve got the “Administrator: Command Prompt” window open, you can run any command, whether it requires administrative privileges or not.

打开“管理员:命令提示符”窗口后,无论是否需要管理特权,您都可以运行任何命令。

以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

选项二:使用开始菜单 (Option Two: Use the Start Menu)

You can also open an administrative Command Prompt using just the Start menu (or Start screen in Windows 8). Hit Start, type “command,” and you’ll see “Command Prompt” listed as the main result. Right-click that result and choose “Run as administrator.”

您也可以仅使用“开始”菜单(或Windows 8中的“开始”屏幕)打开管理命令提示符。 点击开始,键入“命令”,您将看到“命令提示符”被列为主要结果。 右键单击该结果,然后选择“以管理员身份运行”。

以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

选项三:使用运行框 (Option Three: Use the Run Box)

If you’re used to using the “Run” box to open apps, you can use that to launch Command Prompt with admin privileges. Press Windows+R to open the “Run” box. Type “cmd” into the box and then press Ctrl+Shift+Enter to run the command as an administrator.

如果您习惯于使用“运行”框打开应用程序,则可以使用它来以管理员权限启动命令提示符。 按Windows + R打开“运行”框。 在框中输入“ cmd”,然后按Ctrl + Shift + Enter以管理员身份运行命令。

以管理员身份打开命令提示符_如何在Windows 8或10中以管理员身份打开命令提示符...

And with that, you have three very easy ways to run commands in the Command Prompt window as administrator.

这样,您就可以通过三种非常简单的方法以管理员身份在“命令提示符”窗口中运行命令。

翻译自: https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/

以管理员身份打开命令提示符