How to add 'Open command window here' back to context menu on Windows 10

In order to re-incorporate the option to launch Command Prompt on the extended context menu, you'll need to modify the Registry using the following steps:
Warning: This is a friendly reminder that editing the registry is risky, and it can cause irreversible damage to your installation if you don't do it correctly. We recommend making a full backup of your PC before proceeding.
  1. 1Use the Windows key + R keyboard shortcut to open the Run command.
  1. 2Type regedit, and click OK to open the Registry.
  1. 3Browse the following path:HKEY_CLASSES_ROOT\Directory\shell\cmd
  1. 4Right-click the cmd (folder) key, and click on Permissions.
  1. 5Click the Advanced button.
  1. 6On "Advanced Security Settings," click the Change link next to "Owner."
  1. 7Type your account name in the provided field, click Check Names to verify you're typing the account name correctly, and click OK.
  1. 8Check the Replace owner on subcontainers and objects option.
  1. 9Click Apply.
  1. 10Click OK.
  1. 11On "Permissions," select the Administrators group.
  1. 12Under "Permissions for Administrators," select Allow for the Full Control option.
  1. 13Click Apply.
  1. 14Click OK.
  1. 15Inside the cmd (folder) key, right-click the HideBasedOnVelocityId DWORD, and click Rename.
  1. 16Change the DWORD name from HideBasedOnVelocityId to ShowBasedOnVelocityId, and press Enter.
Once you completed the steps, using the Shift + Right-click combo will now display the "Open command window here" option.

While these instructions will bring the option to open Command Prompt in a specific folder location to the context menu, there is one caveat: this will only work when you "Shift + Right-click" a folder. The option won't be available using "Shift + Right-click" on an empty space within a folder.

How to remove 'Open PowerShell window here' from context menu

You'll also notice that using the above steps will bring back the "Open command window here," but it'll keep the "Open PowerShell window here" too.

If you want to remove the PowerShell entry from the extended context menu, do the following:
  1. 1Use the Windows key + R keyboard shortcut to open the Run command.
  1. 2Type regedit, and click OK to open the Registry.
  1. 3Browse the following path:HKEY_CLASSES_ROOT\Directory\shell\PowerShell
  1. 4Right-click the PowerShell (folder) key, and click on Permissions.
  1. 5Click the Advanced button.
  1. 6On "Advanced Security Settings," click the Change link next to "Owner".
  1. 7Type your account name in the provided field, click Check Names to verify you're typing the account name correctly, and click OK.
  1. 8Check the Replace owner on subcontainers and objects option.
  1. 9Click Apply.
  1. 10Click OK.
  1. 11On "Permissions," select the Administrators group.
  1. 12Under "Permissions for Administrators," select Allow for the Full Control option.
  1. 13Click Apply.
  1. 14Click OK.
  1. 15Inside the PowerShell (folder) key, right-click the ShowBasedOnVelocityId DWORD, and click Rename.
  1. 16Change the DWORD name from ShowBasedOnVelocityId to HideBasedOnVelocityId, and press Enter.
After completing the steps, using Shift + Right-click will only show the "Open command window here" option.

Wrapping things up

While you can run the majority of the commands using PowerShell, a lot of people still prefer Command Prompt, and the context menu option provided a quick way to open the utility in a specific location without having to type a long command to navigate to a folder path. But now, thanks to a hidden option in the Registry, you can bring that experience back to Windows 10.

/link/how-to-add-open-command-window-here-back-to-context-menu-on-windows-10