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
    11 Aug 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 22,852

    Show Printable Version 


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

    information   Information
    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.

    Note   Note
    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:	190 
Size:	43.7 KB 
ID:	96076
    Click image for larger version. 

Name:	Open_PowerShell_window_here_as_administrator.png 
Views:	4 
Size:	18.7 KB 
ID:	148300



    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

    NOTE: 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. If prompted, click 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



  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 : 22,852
    64-bit Windows 10 Pro build 16257
    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 : 1,531
    Win-7Prox64 Win-8.1Prox64 Win-10Prox64
       13 Mar 2017 #3

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


  4. Posts : 22,852
    64-bit Windows 10 Pro build 16257
    Thread Starter
       13 Mar 2017 #4

      My ComputersSystem Spec

  5.    2 Weeks Ago #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 : 22,852
    64-bit Windows 10 Pro build 16257
    Thread Starter
       2 Weeks Ago #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 : 388
    Windows 10 Home x64, V1703 (15063.540)
       2 Weeks Ago #7

    You do nice work Shawn. Thanks.
      My ComputersSystem Spec

  8.    2 Weeks Ago #8

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


  9. Posts : 22,852
    64-bit Windows 10 Pro build 16257
    Thread Starter
       2 Weeks Ago #9

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


 
Page 1 of 2 12 LastLast

Related Threads
How to Add 'Open command window here as administrator' context menu in Windows 10 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...
How to Add 'Open PowerShell window here' 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...
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...
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...
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 20:29.
Find Us