TechBuzzPro

Open in Terminal Not Showing Windows 10: How to Fix It

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The "Open in Terminal" option missing from your Windows 10 right-click menu is usually caused by a disabled registry key or a corrupted system file. You can restore it quickly by enabling the specific registry value for the folder context menu, which forces Windows to display the command again.

What You'll Need

  • A Windows 10 PC with administrative privileges
  • Access to the Registry Editor (regedit)
  • Command Prompt or PowerShell (optional, for verification)

Step-by-Step

  1. Open the Registry Editor: Press Win + R on your keyboard to open the Run dialog. Type regedit and press Enter. If prompted by User Account Control, click Yes to allow the app to make changes.
  2. Navigate to the Context Menu Key: In the Registry Editor address bar at the top, paste the following path and press Enter:
    HKEY_CLASSES_ROOT\Directory\Background\shell
  3. Create or Locate the Terminal Key: Look for a folder named ShellTerminal. If it does not exist, right-click on the shell folder, select New > Key, and name it exactly ShellTerminal.
  4. Set the Display Name: With the ShellTerminal key selected, look at the right pane. Double-click the (Default) value. Change its value data to Open in Terminal. Click OK.
  5. Add the Icon (Optional): Right-click the ShellTerminal key, select New > String Value, and name it Icon. Set its value to %SystemRoot%\System32\cmd.exe or %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe depending on your preference.
  6. Create the Command Sub-key: Right-click the newly created ShellTerminal key, select New > Key, and name it command.
  7. Define the Execution Path: Select the command key. In the right pane, double-click (Default). Enter the following path as the value data:
    powershell.exe -windowstyle hidden -NoExit -Command "Start-Process cmd.exe -Verb RunAs"
    Note: For a non-elevated terminal, use: windows-terminal.exe if you have Windows Terminal installed, or cmd.exe for classic CMD.
  8. Restart Explorer: Close the Registry Editor. Press Ctrl + Shift + Esc to open Task Manager. Find Windows Explorer under Processes, right-click it, and select Restart. Your right-click menu should now show "Open in Terminal".

Common Mistakes

The most frequent error users make is typing the wrong path in the Registry Editor. Even a single extra space or a missing backslash will prevent the entry from appearing. Another common mistake is failing to restart Windows Explorer after making changes; without this refresh, the shell extension remains hidden until you log out and back in.

Tips

If you frequently use different terminal environments, consider installing the official Windows Terminal from the Microsoft Store. It supports tabs, multiple profiles (CMD, PowerShell, Azure Cloud Shell), and modern rendering. When editing the registry, always export the key before modifying it so you can revert changes easily if something goes wrong.

Troubleshooting

If the option still does not appear after following the steps above, perform these checks in order:

  • Verify the Registry Path: Ensure you are editing HKEY_CLASSES_ROOT\Directory\Background\shell for the desktop background, or HKEY_CLASSES_ROOT\Directory\shell if you want it to appear when right-clicking folders specifically, not just empty space.
  • Check Third-Party Software: File explorer extensions from tools like WinRAR, 7-Zip, or antivirus software can sometimes override or hide default context menu items. Try temporarily disabling such extensions to see if the option returns.
  • SFC Scan: Corrupted system files can break context menus. Open Command Prompt as Administrator and run sfc /scannow. Let the process complete and repair any found issues.
  • Reset Context Menu via Settings: Go to Settings > Apps > Optional Features. If you see "Windows Terminal Preview" or similar entries, try removing and reinstalling them to reset their registration with the OS.

Frequently Asked Questions

Will this fix work on Windows 11?

No. Windows 11 uses a completely redesigned context menu architecture. The registry paths mentioned here are specific to the legacy Windows 10 shell. On Windows 11, you must use the "Show more options" shift-right-click method or modify the new HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers path.

Can I make it open PowerShell instead of CMD?

Yes. In Step 7, change the value data in the registry to point to powershell.exe instead of cmd.exe. This allows you to choose your preferred shell environment directly from the right-click menu.

Is it safe to edit the Registry?

Editing the registry is generally safe if you follow the exact paths provided. However, always create a System Restore point or export the specific registry key before making changes. Incorrect edits can cause system instability or prevent the desktop from loading correctly.

Why is "Open in Terminal" grayed out?

This usually indicates a permission issue or a conflict with another application. Ensure you are running the Registry Editor with administrator rights. If it persists, check if an antivirus program is blocking access to the shell extension.

Does this require admin rights to run?

The menu item itself does not require admin rights to appear, but opening a terminal that requires elevation (like running system commands) will prompt for UAC approval. To force the terminal to always run as administrator, add -Verb RunAs to the command string in the registry.