Add 'Open in Windows Terminal' expandable context menu in Windows 10  

Page 1 of 3 123 LastLast
    Add 'Open in Windows Terminal' expandable context menu in Windows 10

    Add 'Open in Windows Terminal' expandable context menu in Windows 10

    Published by Category: Customization
    13 Oct 2021
    Designer Media Ltd

    How to Add or Remove "Open in Windows Terminal" expandable context menu in Windows 10


    The Windows Terminal is a modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations.

    Starting with Windows 10 build 21337, Windows Terminal is now an inbox app.

    Windows 10 includes a Open in Windows Terminal context menu by default that opens the default profile when you right click or shift + right click on a folder or folder background, but this does not allow you to select which Windows Terminal shell profile to open with instead.

    This tutorial will show you how to add or remove a custom Open in Windows Terminal expandable context menu for all users in Windows 10.

    The Open in Windows Terminal expandable context menu will allow you to select to open Windows Terminal to the current folder path with the default shell profile, Command Prompt shell profile, or Windows PowerShell shell profile.

    You must be signed in as an administrator to add or remove this "Open in Windows Terminal" context menu, but all users can use the context menu.


    EXAMPLE: "Open in Windows Terminal" expandable context menu
    Add 'Open in Windows Terminal' expandable context menu in Windows 10-open_in_windows_terminal.png



    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 in Windows Terminal" Expandable Context Menu

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

    Add_Open_in_Windows_Terminal_expandable_context_menu.reg

    Download

    If you installed PowerShell 7 and would like to add it to this context menu, then you can download and merge the Add_PowerShell_7.reg file below afterwards.

    Download

    If you installed Ubuntu for WSL or WSL2 and would like to add Ubuntu to this context menu, then you can download and merge the Add_Ubuntu.reg file below afterwards.

    Download


    (Contents of .reg file for reference)
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\OpenWTHere]
    "MUIVerb"="Open in Windows Terminal"
    "Extended"=-
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\001flyout]
    "MUIVerb"="Default Profile"
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\001flyout\command]
    @="cmd.exe /c start wt.exe -d \"%1\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\002flyout]
    "MUIVerb"="Command Prompt"
    "Icon"="imageres.dll,-5323"
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\002flyout\command]
    @="cmd.exe /c start wt.exe -p \"Command Prompt\" -d \"%1\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\003flyout]
    "MUIVerb"="PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\003flyout\command]
    @="cmd.exe /c start wt.exe -p \"Windows PowerShell\" -d \"%1\\.\""
    
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHere]
    "MUIVerb"="Open in Windows Terminal"
    "Extended"=-
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\001flyout]
    "MUIVerb"="Default Profile"
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\001flyout\command]
    @="cmd.exe /c start wt.exe -d \"%V\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\002flyout]
    "MUIVerb"="Command Prompt"
    "Icon"="imageres.dll,-5323"
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\002flyout\command]
    @="cmd.exe /c start wt.exe -p \"Command Prompt\" -d \"%V\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\003flyout]
    "MUIVerb"="PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\003flyout\command]
    @="cmd.exe /c start wt.exe -p \"Windows PowerShell\" -d \"%V\\.\""


    3 To Add Shift + Right Click "Open in Windows Terminal" Expandable Context Menu

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

    Add_Shift+Open_in_Windows_Terminal_expandable_context_menu.reg

    Download

    If you installed PowerShell 7 and would like to add it to this context menu, then you can download and merge the Add_PowerShell_7.reg file below afterwards.

    Download

    If you installed Ubuntu for WSL or WSL2 and would like to add Ubuntu to this context menu, then you can download and merge the Add_Ubuntu.reg file below afterwards.

    Download


    (Contents of .reg file for reference)
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\OpenWTHere]
    "MUIVerb"="Open in Windows Terminal"
    "Extended"=""
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\001flyout]
    "MUIVerb"="Default Profile"
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\001flyout\command]
    @="cmd.exe /c start wt.exe -d \"%1\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\002flyout]
    "MUIVerb"="Command Prompt"
    "Icon"="imageres.dll,-5323"
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\002flyout\command]
    @="cmd.exe /c start wt.exe -p \"Command Prompt\" -d \"%1\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\003flyout]
    "MUIVerb"="PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\003flyout\command]
    @="cmd.exe /c start wt.exe -p \"Windows PowerShell\" -d \"%1\\.\""
    
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHere]
    "MUIVerb"="Open in Windows Terminal"
    "Extended"=""
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\001flyout]
    "MUIVerb"="Default Profile"
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\001flyout\command]
    @="cmd.exe /c start wt.exe -d \"%V\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\002flyout]
    "MUIVerb"="Command Prompt"
    "Icon"="imageres.dll,-5323"
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\002flyout\command]
    @="cmd.exe /c start wt.exe -p \"Command Prompt\" -d \"%V\\.\""
    
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\003flyout]
    "MUIVerb"="PowerShell"
    "Icon"="powershell.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\003flyout\command]
    @="cmd.exe /c start wt.exe -p \"Windows PowerShell\" -d \"%V\\.\""


    4 To Remove "Open in Windows Terminal" Expandable 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_in_Windows_Terminal_expandable_context_menu.reg

    Download

    (Contents of .reg file for reference)
    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOT\Directory\shell\OpenWTHere]
    
    [-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHere]


    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 Brink






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

    Thank you! I will try it out tonight.
      My Computer


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

    bamajon1974 said:
    Thank you! I will try it out tonight.
    You're most welcome.
      My Computers


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

    Hello @Brink ,

    Did you realise that you also have the REG file named Add_PowerShell_7.reg here . . .

    > How to Add or Remove "Open in Windows Terminal" expandable context menu in Windows 10

      My Computer


  4. Posts : 68,917
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    Paul Black said:
    Hello @Brink ,

    Did you realise that you also have the REG file named Add_PowerShell_7.reg here . . .

    > How to Add or Remove "Open in Windows Terminal" expandable context menu in Windows 10

    Hello Paul,

    If you meant below instead, then I've just renamed them to help avoid confusion between these two tutorials.

    Add or Remove 'Open in Windows Terminal as administrator' context menu
      My Computers


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

    Hello @Brink ,

    Brink said:
    If you meant below instead, then I've just renamed them to help avoid confusion between these two tutorials.

    Add or Remove 'Open in Windows Terminal as administrator' context menu
    Yes, that was the one I meant, sorry.
      My Computer


  6. Posts : 68,917
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    Paul Black said:
    Hello @Brink ,


    Yes, that was the one I meant, sorry.
      My Computers


  7. Posts : 521
    Win7 Pro X64, Win10 Pro x640
       #7

    Works very well. Thank you. It seems that since Terminal can launch a number of different shells (command prompt, powershell, etc.), then dedicated command prompt and powershell context menu entries are redundant, right? PowerShell and Command Prompt aren't limited or reduced in capability in Terminal, right?
      My Computer


  8. Posts : 68,917
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    bamajon1974 said:
    Works very well. Thank you. It seems that since Terminal can launch a number of different shells (command prompt, powershell, etc.), then dedicated command prompt and powershell context menu entries are redundant, right? PowerShell and Command Prompt aren't limited or reduced in capability in Terminal, right?
    Correct. The installed shells are not limited in Windows Terminal vs opening them separately without Windows Terminal.
      My Computers


  9. Posts : 521
    Win7 Pro X64, Win10 Pro x640
       #9

    Brink said:
    Correct. The installed shells are not limited in Windows Terminal vs opening them separately without Windows Terminal.
    @Brink

    The commands don't work for these menus. The window doesn't open or the target directory isn't found. I believe you need to make the same adjustment you did in the admin version of the menu.

    Thanks!
      My Computer


 

Tutorial Categories

Add 'Open in Windows Terminal' expandable 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 02:35.
Find Us




Windows 10 Forums