How to open an elevated PowerShell Admin prompt in Windows 10

0
445

[ad_1]

PowerShell

Since 2006, Microsoft has been bundling the PowerShell command line shell that administrators can use to manage their computers and other computers on a network.

“Windows PowerShell is a Windows command line shell designed especially for system administrators. Windows PowerShell includes an interactive prompt and a scripting environment that can be used independently or in combination,” explains Microsoft.

Many PowerShell commands, however, require elevated or administrator permissions, and you need to launch an elevated PowerShell prompt to execute them.

This guide will provide you with two methods that you can use to launch an elevated PowerShell admin prompt.

Method 1: Use Windows 10 Start Menu Context Menu

Right-clicking on the Windows 10 start menu will bring up a context menu that allows you to quickly launch common administrative programs.

An option called “Windows PowerShell (Admin)” is included in this context menu, as shown below.

Launch PowerShell (Admin) prompt Launch the PowerShell prompt (Admin)

To launch an elevated PowerShell prompt, click the “Windows PowerShell (Admin)” option.

Windows 10 will now display a UAC prompt asking if you want to give the program elevated permissions. Click on $0027 Yes $0027 in this message.

UAC Prompt UAC Prompt

An elevated PowerShell prompt will open. You can tell it’s elevated since the home directory will be C:WindowsSystem32 and the window title will be $0027Administrator$0027: Windows PowerShell$0027.

Elevated PowerShell prompt Elevated PowerShell prompt

When you’re done using the prompt, you can close it by clicking the X or typing $0027exit$0027 and then pressing $0027enter$0027.

Method 2: Launch PowerShell from the elevated Command Prompt

If you have an elevated command prompt already open, you can launch a PowerShell shell within it by simply typing $0027 power shell $0027 and pressing enter.

PowerShell launched from an elevated command prompt PowerShell launched from an elevated command prompt

When launched this way, the PowerShell prompt will look slightly different, since the background won’t be blue, and it’s running as a shell under the regular command prompt.

To get back to the elevated command line, you would type $0027 exit $0027 and you would press enter.

[ad_2]