How to Disable Default "Open with PowerShell" Right-Click Menu Entry

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #11

    Callender said:

    I'm pretty sure that "Open Windows Powershell" isn't a default context menu entry.

    Does anyone else have it as default?
    It's described here (arbitrary find) in a manner indicating it's a standard feature
    How to Open PowerShell in a Folder in Windows Explorer

    - if Powershell exists on the system of course.

    Don't need Powershell at all?
    How to Disable Default "Open with PowerShell" Right-Click Menu Entry-1.jpg
      My Computers


  2. Posts : 521
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #12

    For reference, the attached image has the default Powershell context menu from an original windows installation. I just modified added Icon and MUIVerb strings to the existing registry key to make the menu prettier.

    How to Disable Default "Open with PowerShell" Right-Click Menu Entry-def.png


    Callender said:
    I don't think that it's default either. Have you got a subkey key "powershellmenu" here?

    Computer\HKEY_CLASSES_ROOT\Directory\shell

    If so review this article:

    How to Add or Remove "Open PowerShell Here" to context menu - Developing Daily
    - - - Updated - - -

    Somewhat....I would like to keep the PowerShell menu from the File, top left of explorer, and not be greyed out, but permanently hide the context menu below with the appropriate keyword....and it isn't LegacyDisable or ProgrammaticAccessOnly. Not even accessible through Shift+Right-Click...to keep the menu from being cluttered.

    I have never seen anyone modify the ribbon or menu bar in Explorer in Win10 so I think removing the registry key would be easier.

    I would like to keep powershell though. I uninstalled v2, but kept the v5.1.
    dalchina said:
    Ah- you mean you're only concerned about the options from File, top left of file explorer...

    I don't think that can be removed... and it's greyed out unless something to which it can apply is selected in file explorer.

    That said- if you were to remove Powershell...
    - - - Updated - - -

    I have those same registry keys as well. The Powershell key is default, the Admin was added by me.


    Callender said:
    Here's what I have in terms of subkeys.

    - - - Updated - - -

    Open in Windows PowerShell Window here is the default right-click menu entry. Please see 2 or 3 posts above.


    Callender said:
    So I have default entries and I've added:


    I still have:


    I'm pretty sure that "Open Windows Powershell" isn't a default context menu entry.

    Does anyone else have it as default?
    - - - Updated - - -

    Open in Windows PowerShell Window here is the default right-click menu entry. Please see 2 or 3 posts above.


    Callender said:
    So I have default entries and I've added:


    I still have:


    I'm pretty sure that "Open Windows Powershell" isn't a default context menu entry.

    Does anyone else have it as default?
    - - - Updated - - -

    Done and done! Change implemented.

    Callender said:
    You might want to change the thread title from:

    How to Disable Default "Open with PowerShell" Right-Click Menu Entry

    to:

    How to Disable Default "Open Windows PowerShell" Right-Click Menu Entry
    - - - Updated - - -

    I uninstalled PowerShell v2 and would like to keep PowerShell v5.1.


    dalchina said:
    It's described here (arbitrary find) in a manner indicating it's a standard feature
    How to Open PowerShell in a Folder in Windows Explorer

    - if Powershell exists on the system of course.

    Don't need Powershell at all?
    How to Disable Default "Open with PowerShell" Right-Click Menu Entry-1.jpg
      My Computer


  3. Posts : 6,855
    22H2 64 Bit Pro
       #13

    Okay I understand now that you modified the default entry. I don't know how to fix it though.
      My Computer


  4. Posts : 521
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #14

    I edited the original post to focus on the default windows context menu entry and clarified my questions and also asked if there are other locations in the registry to be edited.

    Who are the registry gurus on tenforums that I should tag?

    Callender said:
    Okay I understand now that you modified the default entry. I don't know how to fix it though.
      My Computer


  5. Posts : 6,855
    22H2 64 Bit Pro
       #15

    I don't know who to ask on this subject. I did find that File menu for powershell is found here:

    C:\Users\Username\AppData\Local\Microsoft\Windows\WinX\Group3
      My Computer


  6. Posts : 521
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #16

    Good morning @Brink . Who are the registry gurus (in addition to yourself) on the forums that might be able to help?

    Thanks!
      My Computer


  7. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #17

    Note: given the text is "Windows Powershell" - there are no registry finds for that.
      My Computers


  8. Posts : 521
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #18

    I couldn't find Windows Powershell in the registry either but I am referring to Powershell v5.1, the older version installed with Windows. I don't really use Powershell v7, and removed the really old powershell v2 from install optional components from the programs and features applet in control panel.

    I would like to keep powershell 5 as I use it sparingly but just want to remove the unnecessary context menus while retaining the functionality in Explorer File Menu Bar.

    Disabling the right-click context menu does grey out the explorer menu command so I wonder if looking in the windows command registry keys would unlink the two? I am not a programmer and don't really understand many of the cryptic registry keys and strings and dwords though.

    dalchina said:
    Note: given the text is "Windows Powershell" - there are no registry finds for that.
      My Computer


  9. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #19

    Considering the File Menu, there is a group policy to disable that- but it is ineffective.

    For interest: I note that there is a tutorial in Win 11 on that, but apparently its success is build dependent and does not look dependable either.

    I note you've posted a query on Superuser:
    Disable Default "Open Windows PowerShell" Right-Click Menu? - Super User
      My Computers


  10. Posts : 68,995
    64-bit Windows 11 Pro for Workstations
       #20

    bamajon1974 said:
    Good morning @Brink . Who are the registry gurus (in addition to yourself) on the forums that might be able to help?

    Thanks!
    I wasn't aware of it also removing in from the File menu.

    Open PowerShell window here context menu - Add in Windows 10
      My Computers


 

  Related Discussions
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 22:24.
Find Us




Windows 10 Forums