Windows 10: Add Open PowerShell window here as administrator in Windows 10  

Page 1 of 2 12 LastLast
    Add Open PowerShell window here as administrator in Windows 10

    Add Open PowerShell window here as administrator in Windows 10

    How to Add Open PowerShell window here as administrator context menu in Windows 10
    Published by Category: Customization
    17 Jul 2018
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 30,692

    Show Printable Version 


    How to Add "Open PowerShell window here as administrator" context menu in Windows 10


    Windows 10 comes with Windows PowerShell 5.0 included.

    Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows.

    For more details about Windows PowerShell, see:

    This tutorial will show you how to add or remove a Open PowerShell window here as administrator context menu for all users in Windows 10.

    You must be signed in as an administrator to add, remove, or use the "Open PowerShell window here as administrator" context menu.

    The "Open PowerShell window here as administrator" context menu will be available when you right click or shift + right click on a folder or drive, and when you right click or shift + right click on the background of a folder, drive, library, or desktop.


    EXAMPLE: "Open PowerShell window here as administrator" context menu
    Click image for larger version. 

Name:	Open_PowerShell_here_as_admin_context_menu.png 
Views:	431 
Size:	43.7 KB 
ID:	96076
    Name:  Open_PowerShell_window_here_as_administrator.png
Views: 812
Size:  11.9 KB



    Here's How:

    1. Do step 2 (add-right click), step 3 (add-Shift+right click) , or step 4 (remove) below for what you would like to do.


     2. To Add Right Click "Open PowerShell window here as administrator" Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Add_Open_PowerShell_window_here_as_administrator_context_menu.reg

    download


     3. To Add Shift + Right Click "Open PowerShell window here as administrator" Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Add_Shift+Open_PowerShell_window_here_as_administrator_context_menu.reg

    download


     4. To Remove "Open PowerShell window here as administrator" Context Menu

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Remove_Open_PowerShell_window_here_as_administrator_context_menu.reg

    download

    5. Save the .reg file to your desktop.

    6. Double click/tap on the downloaded .reg file to merge it.

    7. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    8. You can now delete the downloaded .reg file if you like.


    That's it,
    Shawn


    Related Tutorials




  1. Posts : 8
    Windows 10 Education
       02 Oct 2016 #1

    I found the /k switch in the cmd call to launch PowerShell is not handy for me. Let me illustrate an example:
    Because I have my hands on the keyboard when using PS, quitting is faster by typing exit than with the mouse to close the PS window, which actually is cmd running PS. So, when I type exit PS quits and cmd is still there, so I'd have to type exit twice to actually close the window (Alt+F4 doest not work in PS). This can be fixed by changing the /k switch to /c, which stops cmd execution after PS quits. Is this always the case and if so, would you consider integrating this change in the .reg files on tenforums.com?
      My ComputerSystem Spec


  2. Posts : 30,692
    64-bit Windows 10 Pro build 17713
    Thread Starter
       02 Oct 2016 #2

    Hello EDP, :)

    Odd. It closed for me, but I have updated the tutorial to use /C for you to help.
      My ComputersSystem Spec


  3. Posts : 3,374
    3-Win-7Prox64 2-Win10Prox64
       13 Mar 2017 #3

    Hi,
    This one is
    I'm getting quite a collection of reg files thanks for your generous geekness :)
    Cheers.
      My ComputersSystem Spec


  4. Posts : 30,692
    64-bit Windows 10 Pro build 17713
    Thread Starter
       13 Mar 2017 #4

      My ComputersSystem Spec

  5.    03 Aug 2017 #5

    On my laptop Powershell immediately auto-closes and leaving a command shell running. Tried changing '/c' to '/k', made no difference.
      My ComputerSystem Spec


  6. Posts : 30,692
    64-bit Windows 10 Pro build 17713
    Thread Starter
       03 Aug 2017 #6

    Hello flvegat, and welcome to Ten Forums. :)

    Does it look like the example screenshot in the tutorial?

    If so, it's running PowerShell even though it's in a command window instead of the usual blue PowerShell window.
      My ComputersSystem Spec


  7. Posts : 707
    Windows 10 Home x64 Version 1803 (OS Build 17134.167)
       03 Aug 2017 #7

    You do nice work Shawn. Thanks.
      My ComputersSystem Spec

  8.    03 Aug 2017 #8

    Sorry, didn't notice the Powershell prompt
      My ComputerSystem Spec


  9. Posts : 30,692
    64-bit Windows 10 Pro build 17713
    Thread Starter
       03 Aug 2017 #9

    No problem. I just wanted to make sure it was working properly for you. :)
      My ComputersSystem Spec


 
Page 1 of 2 12 LastLast

Tutorial Categories

Add Open PowerShell window here as administrator in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial will show...
How to Add 'Open Bash window here as administrator' context menu in Windows 10 Microsoft first made investments that improve cmd, PowerShell, and many other command-line tools and developer scenarios. Second Microsoft decided to grow their...
How to Open Elevated Windows PowerShell in Windows 10 Windows 10 comes with Windows PowerShell 5.0 included. Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on...
Windows 10 comes with Windows PowerShell 5.0 included. Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT...
Whenever I have more than one window open the active window seems to change unexpectedly without me even clicking in the window to activate it. For example I'll have one half of my screen streaming a Netflix video and the other half will be another...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 19:55.
Find Us