How to Bring “Open Command Window here” Option Back in Windows 10

0

Starting Windows 10 build 14986, the beloved “Open command window here” option in the extended context menu has been replaced by “Open Powershell window here” option. Microsoft just wants to go in full with PowerShell.

Windows 10 open PowerShell window here option in Context Menu - How to Bring "Open Command Window here" Option Back in Windows 10

While most of the command line works fine in PowerShell, certain commands just work better in Command Prompt. It would be nice still seeing “Open Command Prompt window here” option remaining in the context menu, or better, having both options available at the same time.

Here is a registry tweak that may just do the trick.

To have both options available

If you want to have both “Open Command Prompt window here” and “Open PowerShell window here” options in the Context Menu, here is what we need to do.

First of all, we need to alter the permission setting on the following key.

HKEY_CLASSES_ROOT\Directory\shell\cmd

Right-click on the key cmd and choose Permissions.

Registry change permission of a key - How to Bring "Open Command Window here" Option Back in Windows 10

In the Permissions for cmd dialog box, click Advanced button. Then click Change button next to Owner’s name to change the owner of this key to yourself. Make sure “Replace owner on subcontainers and objects” option is checked before you hit OK button to save the change.

Registry change permission of a key advanced - How to Bring "Open Command Window here" Option Back in Windows 10

Then, give the Administrators group a Full Control access.

Registry change permission of a key full control - How to Bring "Open Command Window here" Option Back in Windows 10

No, let’s delete a DWORD value called HideBasedOnVelocityId.

Registry delete HideBasedOnVelocityId 600x241 - How to Bring "Open Command Window here" Option Back in Windows 10

And here is what you get after deleting this registry value.

Windows 10 both command prompt and powershell context menu - How to Bring "Open Command Window here" Option Back in Windows 10

To bring Command Prompt back to replace PowerShell option

If you want to replace “Open PowerShell window here” option and only to leave “Open Command Prompt window here,” finish the above steps first, and do the following step.

Change the ownership of the following key to yourself and give the Full Control permission to Administrators group, same as above.

HKEY_CLASSES_ROOT\Directory\shell\powershell

Once done, then rename a DWORD value ShowBasedOnVelocityId to HideBasedOnVelocityId with the same value set as 639bc8 in hexadecimal.

Windows 10 registry for hide powershell window here option 600x268 - How to Bring "Open Command Window here" Option Back in Windows 10

Now, you’ve only seen one option which is “Open Command Prompt window here” in the Context menu when you shift + right-click on a folder.

Windows 10 replace powershell with command prompt - How to Bring "Open Command Window here" Option Back in Windows 10

LEAVE A REPLY

Please enter your comment!
Please enter your name here