Add 'Edit or Run with' to PS1 File Context Menu in Windows 10  

Page 4 of 5 FirstFirst ... 2345 LastLast

  1. Posts : 521
    Win7 Pro X64, Win10 Pro x640
       #30

    Brink said:
    Hello,

    Other than installing it, I'm not aware of a way to remove the suggestion in PowerShell.
    I do have PowerShell 7 installed as well. How come the standard PowerShell 5.1 entry launches a shell with no MS copyright but the elevated PS window does? I tried looking at the code but couldn't find anything other than -noexit that would account but -noexit line doesn't remove any of the copyright or advertising info.
      My Computer


  2. Posts : 68,891
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #31

    bamajon1974 said:
    I do have PowerShell 7 installed as well. How come the standard PowerShell 5.1 entry launches a shell with no MS copyright but the elevated PS window does? I tried looking at the code but couldn't find anything other than -noexit that would account but -noexit line doesn't remove any of the copyright or advertising info.
    Not sure, but both elevated and non-elevated PowerShell 5.1 have the copyright and ad info for me.
      My Computers


  3. Posts : 521
    Win7 Pro X64, Win10 Pro x640
       #32

    The non-elevated PS v5.1 window just has the directory path for me. Not sure why....
      My Computer


  4. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #33

    Hello @Brink ,

    Do you think it would be a good idea to ADD . . .

    > How to Add or Remove PowerShell 7 Open Here Context Menu in Windows 10

    . . . to this Tutorials REG file at the Top of the REG file?

    The Title could then just be changed to Open, Run or Edit with . . .

    Code:
    
    [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Edit-Run-with]
    "MUIVerb"="Open, Run or Edit with"
    "Extended"=-
    "SubCommands"=""

    There would also need to be an extra "CommandFlags"=dword:00000020 added.

    Just a thought!

      My Computer


  5. Posts : 68,891
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #34

    Hello @Paul Black,

    If PowerShell 7 didn't have to be installed, I would. Since it's not installed by default, it's best to still use the included PowerShell instead.
      My Computers


  6. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #35

    Brink said:
    Hello @Paul Black,

    If PowerShell 7 didn't have to be installed, I would. Since it's not installed by default, it's best to still use the included PowerShell instead.
    Fair enough. Thanks for the explanation, it is appreciated.
      My Computer


  7. Posts : 1
    Windows 10
       #36

    Confirmed not working on Windows 11 with its new right click menus... Researching what it will take to re-enable it...
      My Computer


  8. Posts : 75
    21H1 (19043.1415)
       #37

    This isn't working for me.. Might be related to this.
      My Computer


  9. Posts : 68,891
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #38

    Michael said:
    This isn't working for me.. Might be related to this.
    Just to note, this will only work when right clicking on .ps1 files.

    Is the context menu available for .ps1 files for you?

    If so, do you have any characters in the file name that may prevent it from working?
      My Computers


  10. Posts : 75
    21H1 (19043.1415)
       #39

    I figured it out... For some reason, editing the context entries at KEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell was having no effect, but after tracking down their true location using ShellMenuView, it turns out that on my system, they're under HKEY_CLASSES_ROOT\SystemFileAssociations\.ps1\Shell

    I wonder why
      My Computer


 

Tutorial Categories

Add 'Edit or Run with' to PS1 File Context Menu 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 Mixed Reality Phone


  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 13:38.
Find Us




Windows 10 Forums