How to open an elevated PowerShell Admin prompt in Windows 10

  • May 16, 2020
  • Read 18,188 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 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 Disable Bing Search in the Windows 10 Start Menu Image
    How to Disable Bing Search in the Windows 10 Start Menu

    One of the features of the Windows 10 Start Menu is a built-in Bing search when a local search fails to find anything. Whether it be due to privacy reasons, bugs, or just personal dislike, this article will explain how to disable Bing search in the Start Menu.

  • How to show hidden files in Windows 7 Image
    How to show hidden files in Windows 7

    Windows 7 hides certain files so that they are not able to be seen when you exploring the files on your computer. The files it hides are typically Windows 7 System files that if tampered with could cause problems with the proper operation of the computer. It is possible, though, for a user or piece of software to set make a file hidden by enabling the hidden attribute in a particular file or ...

  • 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.

 

Comments:

blog comments powered by Disqus

Sponsor Posts

Qualys:
Qualys logo VMDR Vulnerability Management, Detection and Response  —  Discover, assess, prioritize, and patch critical vulnerabilities in real time and across your global hybrid-IT landscape all from a single solution.
JSCM Group:
JSCM logo JSCM's Intelligent & Flexible Cyber Security  —  Helping organizations assess risk and solve complex CyberSecurity problems for more than 20 years.
search tutorials

Login

欧美色视频日本片免费_欧美做真爱免费a片_欧美av熟妇的荡欲