Professional Documents
Culture Documents
CMD
×
On Windows 10, Microsoft continues to fade out Command Prompt in favor of
PowerShell. Although you can still use the console, you'll notice that the option is no
longer available on the Power User menu (Windows key + X), on the File menu for File
Explorer, or in the extended context menu (Shift + Right-click).
While there is an option in the Settings app to add Command Prompt to the Power User
menu, you won't find an option to bring it back to the extended context menu. However,
it's still possible to re-incorporate the option in Windows 10, if you're comfortable
modifying the Registry.
In this Windows 10 guide, we walk you through the steps to bring back the "Open
command window here" option to the context menu.
PUBLICIDADE
PUBLICIDADE
×
Movie Maker
FAZER DOWNLOAD
Edite Vídeos Como um Pro. Edite Qualquer Formato de Vídeos. Editor de vídeo.
Teste Já! Movavi
Best online learning tools for kids: ABCmouse, Reading IQ, & more
Limited Time Offers
Adding the "Open command window here" to the extended-folder context menu is a
two-step process. First, you need to bring back the option when you open the menu
when right-clicking a folder, and second, using similar steps, you need to return the
option when right-clicking the background of a folder.
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. Use the Windows key + R keyboard shortcut to open the Run command.
2. Type regedit, and click OK to open the Registry.
Browse the following path:
×
HKEY_CLASSES_ROOT\Directory\shell\cmd
4. Right-click the cmd (folder) key, and click Permissions.
×
6. On "Advanced Security Settings," click the Change link next to "Owner."
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.
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.
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.
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.
×
3. Browse the following path:
HKEY_CLASSES_ROOT\Directory\Background\shell\cmd
4. Right-click the cmd (folder) key, and click Permissions.
×
6. On "Advanced Security Settings," click the Change link next to "Owner."
5.
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.
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.
Change the DWORD name from HideBasedOnVelocityId to
ShowBasedOnVelocityId, and press Enter.
7.
×
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.
Thanks @johannesmp (Windows Central reader) for this part of the tip!
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. 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\PowerShell
4. Right-click the PowerShell (folder) key, and click Permissions.
12.
×
6. On "Advanced Security Settings," click the Change link next to "Owner".
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.
16.
9. Click Apply.
10. Click OK.
11. On "Permissions," select the Administrators group.
Under "Permissions for Administrators," select Allow for the Full Control option.
×
13. Click Apply.
14. Click OK.
15. Inside the PowerShell (folder) key, right-click the ShowBasedOnVelocityId
DWORD, and click Rename.
Change the DWORD name from ShowBasedOnVelocityId to
HideBasedOnVelocityId, and press Enter.
×
After completing these steps, using Shift + Right-click will only show the "Open
command window here" option.
To bring back the PowerShell option, follow the same instructions, but on step No. 16,
make sure to rename the DWORD from HideBasedOnVelocityId to
ShowBasedOnVelocityId, and press Enter.
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 provides a quick way to open
the utility in a specific location without having to type a long command to navigate to a
×