How to open an elevated PowerShell Admin prompt in Windows 10

  • May 16, 2020
  • Read 183,779 times
 

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," Microsoft explains.

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

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

Method 1: Use the Windows 10 Start Menu context menu

When you right-click on the Windows 10 start menu, a context menu will appear that allows you to launch frequent administrative programs quickly.

Included on this context menu is an option called 'Windows PowerShell (Admin)', as shown below.

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

To launch an elevated PowerShell prompt, click on the 'Windows PowerShell (Admin)' option.

Windows 10 will now display a UAC prompt asking if you want to give the program elevated permissions. Click 'Yes' at this prompt.

UAC Prompt
UAC Prompt

An elevated PowerShell prompt will now open. You can tell it is elevated as the starting directory will be C:\Windows\System32 and the window title will be 'Administrator: Windows PowerShell'.

Elevated PowerShell prompt
Elevated PowerShell prompt

When done using the prompt, you can close it by clicking on the X or by typing 'exit' and then pressing enter.

Method 2: Launch PowerShell from elevated command prompt

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

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

When launched in this way, the PowerShell prompt will look slightly different as the background will not be blue, and it is running as a shell under the regular command prompt.

To exit back to the elevated command prompt, you would type 'exit' and press enter.

Users who read this also read:

  • How to install the Microsoft Visual C++ 2015 Runtime Image
    How to install the Microsoft Visual C++ 2015 Runtime

    If you start a program and receive an error stating that the program you are trying to run needs the Microsoft Visual C++ 2015 Runtime, you can use this tutorial to install the package so that your program works again.

  • How to make the Start menu full screen in Windows 10 Image
    How to make the Start menu full screen in Windows 10

    By default, the Windows 10 Start menu will open up in a size that accommodates all of the pinned items. For those who wish to use a larger Start screen, making the Start menu open in a full-screen mode is possible.

  • How to Translate a Web Page in Google Chrome Image
    How to Translate a Web Page in Google Chrome

    The web is made up of terrific content from all over the world and sometimes the content you want to read is written in a different language. Thankfully, Google Chrome has built-in support for the Google Translate service, which will automatically translate the page into a language of your choice.

  • How to open a Windows 11 Command Prompt as Administrator Image
    How to open a Windows 11 Command Prompt as Administrator

    It is possible to open a Command Prompt with Administrator privileges that allows you to run any command that you wish, even those that require elevated privileges. Here's how to open a Windows 11 Administrator Command Prompt.

  • How to see hidden files in Windows Image
    How to see hidden files in Windows

    By default Windows hides certain files from being seen with Windows Explorer or My Computer. This is done to protect these files, which are usually system files, from accidentally being modified or deleted by the user. Unfortunately viruses, spyware, and hijackers often hide there files in this way making it hard to find them and then delete them.

 

Comments:

blog comments powered by Disqus
search tutorials

Login