Open PowerShell window here as administrator - Add in Windows 10

    Open PowerShell window here as administrator - Add in Windows 10

    How to Add 'Open PowerShell window here as administrator' context menu in Windows 10
    Published by
    2016-08-13
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 17,477

    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:	64 
Size:	43.7 KB 
ID:	96076
    Name:  Administrator_PowerShell.png
Views: 870
Size:  7.6 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

    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. Joined : Sep 2015
    Posts : 8
    Windows 10 Education
       2016-10-02 #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 System SpecsSystem Spec


  2. Joined : Oct 2013
    Posts : 17,477
    64-bit Windows 10 Pro build 15014
       2016-10-02 #2

    Hello EDP,

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


 


Similar Threads
Tutorial Category
Open PowerShell window here context menu - Add in Windows 10
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...
Tutorials
Open Bash window here as administrator - Add in Windows 10
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...
Tutorials
Open command window here as administrator - Add in Windows 10
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...
Tutorials
Active window changes unexpectedly when more than one window open.
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...
General Support
Windows PowerShell Elevated - Open in Windows 10
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...
Tutorials
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 05:23.
Find Us
Twitter Facebook Google+



Windows 10 Forums