Add Open Windows Terminal in Command Prompt, PowerShell profile context menu items

The content below is taken from the original ( Add Open Windows Terminal in Command Prompt, PowerShell profile context menu items), to continue reading please visit the site. Remember to respect the Author & Copyright.

Windows Terminal can let you open multiple Command Prompt, Windows PowerShell, etc., tabs in one window, and you can open it from the right-click context menu. However, as the default option opens the default startup profile, you can add an expandable menu to open any profile according to your requirements.

Add Open Windows Terminal in Default, Command Prompt, PowerShell profile context menu items

Add expandable Windows Terminal in context menu to open any profile

Let’s assume that your default startup profile is set as Command Prompt, but you want to open Windows PowerShell. At such a moment, you can use the context menu option to open Windows PowerShell in Windows Terminal app without administrator privilege. It is possible to get it done using the Registry Editor. Therefore, it is recommended to create a System Restore pointbefore heading to the steps.

Add expandable Windows Terminal in context menu to open any profile

To add expandable Windows Terminal in context menu, follow these steps:

  1. Open Notepad on your PC.
  2. Paste the following text.
  3. Click on File > Save As.
  4. Choose a location, enter a name with .reg extension, select All Files from Save as type list.
  5. Click the Save button.
  6. Double-click on the .reg file and confirm the addition.
  7. Right-click on your Desktop to find the options.

To learn more about these aforementioned steps, continue reading.

At first, open the Notepad on your computer and paste the following text:

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"="Open in Windows Terminal 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"="Open in Windows Terminal 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"="Open in Windows Terminal 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"="Open in Windows Terminal 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"="Open in Windows Terminal 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"="Open in Windows Terminal 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\""

Click on File > Save As option and choose a location where you want to save the file.

Add expandable Windows Terminal in context menu to open any profile

Enter a name with .reg extension (for example, TermExpMenu.reg), select All Files from the Save as type drop-down list, and click the Save button.

Following that, double-click on the .reg file that you created and click on the Yes button.

If you wish, you could download our ready-to-use Registry file to add this context menu item.

You can now right-click on your desktop to find out the expandable Windows Terminaloption in the context menu to directly open any profile.

However, if you no longer need this context menu option and want to remove it, follow these steps.

At first, follow this tutorial to open the Registry Editoron your PC and navigate to these paths one after one:

HKEY_CLASSES_ROOT\Directory\shell\OpenWTHere

HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHere

Right-click on the OpenWTHerekey and choose the Delete option.

Add expandable Windows Terminal in context menu to open any profile

Then, confirm the removal by clicking the OK button.

After that, you may have to restart your computer or sign out and re-sign into your user account to get the change.

Next, we will see how to add Open Windows Terminal as an administrator in the Context Menu.

That’s all! Hope this guide helped you adding an expandable Windows Terminal option in the context menu to open any profile you want.

Related reads:

Add expandable Windows Terminal in context menu to open any profile

This article Add Open Windows Terminal in Command Prompt, PowerShell profile context menu items first appeared on TheWindowsClub.com.