Show the ‘Open command window here’ option to Windows Context menu

  1. Use the Windows key + R keyboard shortcut to open the Run command.
  2. Type regedit, and click OK to open the Registry.
  3. Browse the following path:HKEY_CLASSES_ROOT\Directory\shell\cmd
  4. Right-click the cmd (folder) key, and click Permissions.
  5. Click the Advanced button.
  6. On “Advanced Security Settings,” click the Change link next to “Owner.”
  7. Type your account name in the provided field, click Check Names to verify you’re typing the account name correctly, and click OK.
  8. Check the Replace owner on subcontainers and objects option.
  9. Click Apply.
  10. Click OK.
  11. On “Permissions,” select the Administrators group.
  12. Under “Permissions for Administrators,” select Allow for the Full Control option.
  13. Click Apply.
  14. Click OK.
  15. Inside the cmd (folder) key, right-click the HideBasedOnVelocityId DWORD, and click Rename.
  16. Change the DWORD name from HideBasedOnVelocityId to ShowBasedOnVelocityId, and press Enter.

Once you complete these steps, using the Shift + Right-click combo on a folder will display the “Open command window here” option.

At any time, you can revert the changes following the same instructions, but on step No. 16, make sure to rename the DWORD from from ShowBasedOnVelocityId to HideBasedOnVelocityId, and press Enter.

Adding ‘Open command window here’ to the background context menu

The instructions mentioned above add the option to open Command Prompt on the folder context menu, but not when you Shift + right-click the background of the folder that is currently open.

If you want to Shift + right-click a background to open the location using Command Prompt, you need to follow these extra steps:

  1. Use the Windows key + R keyboard shortcut to open the Run command.
  2. Type regedit, and click OK to open the Registry.
  3. Browse the following path:HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
  4. Right-click the cmd (folder) key, and click Permissions.
  5. Click the Advanced button.
  6. On “Advanced Security Settings,” click the Change link next to “Owner.”
  7. Type your account name in the provided field, click Check Names to verify you’re typing the account name correctly, and click OK.
  8. Check the Replace owner on subcontainers and objects option.
  9. Click Apply.
  10. Click OK.
  11. On “Permissions,” select the Administrators group.
  12. Under “Permissions for Administrators,” select Allow for the Full Control option.
  13. Click Apply.
  14. Click OK.
  15. Inside the cmd (folder) key, right-click the HideBasedOnVelocityId DWORD, and click Rename.
  16. Change the DWORD name from HideBasedOnVelocityId to ShowBasedOnVelocityId, and press Enter.

Once you complete these steps, when using the Shift + right-click combo on a folder background you will see the “Open command window here” option.

You can revert the changes following the same instructions, but on step No. 16, make sure to rename the DWORD from from ShowBasedOnVelocityId to HideBasedOnVelocityId, and press Enter.

Reference: https://www.windowscentral.com/add-open-command-window-here-back-context-menu-windows-10