open command window

As of the Windows 10 Creators Update, Microsoft continues to phase out older items, such as the Command Prompt. They have now replaced the “Open command window here” option on the context menu with the “Open PowerShell window here” option, encouraging everyone to use PowerShell.

PowerShell allows you to do the same things as the Command Prompt, but it’s also designed for more advanced tasks, such as directly editing the registry. It’s essentially a command-line utility and a scripting language, using “cmdlets”.

PowerShell window and Command Prompt window

Fortunately, the command window, or command-line utility, has not been removed from Windows 10. However, the “Open command window here” option is no longer available on the File menu in File Explorer, on the “Shift+Right-click” context menu, or by default on the Power User (Win+X) menu.

If you would rather use the Command Prompt, we’ll show you how to add the “Open command window here” option back to the context menu and even remove the PowerShell option.

Add “Open Command Window Here” Back To The Context Menu

Having the Command Prompt option on the Power User menu is handy, but even more useful is having the “Open command window here” option on the context menu. This allows you to open a command window to the selected folder without having to type the full path on the command prompt to change to that directory.

IMPORTANT: Editing the registry can be risky if you don’t do it correctly. We recommend you ALWAYS back up the registry before making changes to it.

Open The Registry Editor

To get started, open the Registry Editor by pressing “Windows key+R” and type “regedit” in the “Open” box. Then, click “OK” or press “Enter“.

Open the Registry Editor

If the “User Account Control” dialog box displays, click “Yes” to continue.

NOTE: You may not see this dialog box, depending on your User Account Control settings. We don’t recommend disabling UAC entirely, however.

User Account Control dialog box for the Registry Editor

In the Registry Editor, use the left sidebar to navigate to the following key:

HKEY_CLASSES_ROOT\Directory\shell\cmd

You will need to change the permissions for the “cmd” key in order to change any values for that key. So, right-click the “cmd” key, and click “Permissions” on the pop-up menu.

Select Permissions or the cmd key

On the “Permissions for cmd” dialog box, click the “Advanced” button.

Click the Advanced button for the cmd key

Click the “Change” link to the right of “Owner” on the “Advanced Security Settings for cmd” dialog box.

Click Change next to owner for cmd key

On the “Select User or Group” dialog box, type your account name in the “Enter the object name to select” box and then click “Check Names“.

Enter user name and click Check Names for cmd key

Then, click “OK“.

Click OK on Select User or Group dialog box

Back on the “Advanced Security Settings for cmd” dialog box, check the “Replace owner on subcontainers and objects” box. Then, click “OK“.

Check the Replace Owner on subcontainers and objects box

Select “Administrators” in the “Group or user names” box back on the “Permissions for cmd” dialog box. Check the “Allow” box in the “Permissions for Administrators” section, then click “OK“.

Change Admin permissions for cmd key

Make sure the “cmd” key is selected. Then, right-click on the “HideBasedOnVelocityId” value in the right pane and select “Rename” on the pop-up menu.

Select Rename for cmd key value

Change the “HideBasedOnVelocityId” value to “ShowBasedOnVelocityId” and press “Enter“.

Change Hide to Show on value

Close the Registry Editor by going to “File” > “Exit” or clicking the “X” button in the upper-right corner of the window.

Close the Registry Editor

Now, when you press “Shift” and right-click on a folder, the “Open command window here” option is available. Note that you have to right-click on a folder to access the “Open command window here” option, not on an empty space within a folder.

Notice that the “Open PowerShell window here” option is still available. If you don’t use PowerShell, you can remove it from the context menu. We’ll show you how in the next section.

Open command window here on context menu

Remove “Open PowerShell Window Here” From The Context Menu

To remove the “Open PowerShell window here” option from the context menu, open the Registry Editor by pressing “Windows key+R” and type “regedit” in the “Open” box. Then, click “OK” or press “Enter“.

Open the Registry Editor

If the “User Account Control” dialog box displays, click “Yes” to continue.

NOTE: You may not see this dialog box, depending on your User Account Control settings. We don’t recommend disabling UAC entirely, however.

User Account Control dialog box for the Registry Editor

In the Registry Editor, use the left sidebar to navigate to the following key:

HKEY_CLASSES_ROOT\Directory\shell\PowerShell

Again, you will need to change the permissions for the “PowerShell” key in order to change any values for that key. So, right-click the “PowerShell” key, and click “Permissions” on the pop-up menu.

Select Permissions for the PowerShell key

On the “Permissions for PowerShell” dialog box, click the “Advanced” button.

Click the Advanced button for the PowerShell key

Click the “Change” link to the right of “Owner” on the “Advanced Security Settings for PowerShell” dialog box.

Click Change next to Owner for the PowerShell key

On the “Select User or Group” dialog box, type your account name in the “Enter the object name to select” box and then click “Check Names“.

Enter user name and then click the Check Names button

Then, click “OK“.

Click OK on the Select User or Group dialog box

Back on the “Advanced Security Settings for PowerShell” dialog box, check the “Replace owner on subcontainers and objects” box. Then, click “OK“.

Check Replace

Select “Administrators” in the “Group or user names” box back on the “Permissions for PowerShell” dialog box. Check the “Allow” box in the “Permissions for Administrators” section, then click “OK“.

Change Administrator permissions for PowerShell key

Make sure the “PowerShell” key is selected. Then, right-click on the “ShowBasedOnVelocityId” value in the right pane and select “Rename” on the pop-up menu.

Select Rename for PowerShell key value

Change the “ShowBasedOnVelocityId” value to “HideBasedOnVelocityId” and press “Enter“.

Change Show to Hide for PowerShell key value

Close the Registry Editor by going to “File” > “Exit” or clicking the “X” button in the upper-right corner of the window.

Close the Registry Editor

Now, when you press “Shift” and right-click on a folder, the “Open PowerShell window here” option is gone.

PowerShell gone from context menu.

Add “Command Prompt” Back To The Power User Menu

If you don’t need to open the Command Prompt window to a specific folder, you can easily open it from the Power User menu. You may see the PowerShell option on the Power User (Win+X) menu, but you can replace that with the Command Prompt option.

Open the Start menu and click the “Settings” (gear) icon. Then, go to “Personalization” > “Taskbar“. Make sure the “Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key+X” option is off.

The slider button should be black and white and should read “Off“.

Enable Command Prompt option on Power User menu

Do you use the Command Prompt or PowerShell or both? What do you use each for? Let us know in the comments.

Lori Kaufman
Freelance technical writer living in the Sacramento, CA area. A gadget and tech geek who loves to write how-to articles about a wide range of topics. Loves watching and reading mysteries, cross stitching, attending musical theatre, and is an avid Doctor Who fan.