As you might know, Microsoft started to Replace PowerShell command-line to be used in windows 10 instead of the default Command Prompt or CMD in the previous versions of Windows.
Starting with the Creators Update for Windows 10 and later, You can no longer open the Command Prompt from the file Explorer’s Context Menu that appears when you hold down Shift key + Right Click which Microsoft has replaced it with PowerShell option.
However, This might not be a big deal for most users, but for those who want the old Command Prompt back, we’re going to show you how to replace PowerShell and open Command Prompt CMD.
Replace PowerShell with Command Prompt In Windows 10
There are many methods that you can use to replace powershell with Command Prompt in Windows 10, Here’s the best four methods to replace PowerShell with Command Prompt :
First Method: Open Command Prompt from Win+X Menu
Right Click on Start Menu or Press Windows key + X and then Choose Command Prompt.
If you found Powershell instead of Command Prompt and probably it is, Follow the instructions below to Replace PowerShell with Command Prompt with Command Prompt.
- Right click on your taskbar and then click on Taskbar Settings.
- Find the option “Replace Command Prompt with Windows PowerShell” and Turn it off.
Second Method: Replace PowerShell with Command Prompt in Explorer’s Context Menu
If you want to open Command Prompt from a specific folder, Hold down Shift key + Right Click to open Explorer’s Context Menu and then Click “Open command window here”.
By default, Microsoft has replaced PowerShell with Command Prompt in Windows 10, To restore the option “Open command window here”, Follow the instructions below.
- Open Registry Editor, simply by pressing Windows Key + R and Type Regedit.
- Copy and paste this address Computer\HKEY_CLASSES_ROOT\Directory\Background\shell to the address bar in the Registry Editor and press Enter.
- From the sidebar, find “cmd”,Right click on it and then select Permissions.
- From the Permissions Window, Click on Advanced.
- On the top of the Advanced Window, Click on Change which is next to the Owner field.
- In the input field, Type “Administrator” then click Check Names on the right side and then Click OK.
- Back to The Advanced Window, Mark on “Replace owner on subcontainers and objects” then Click OK.
- Back in the Permissions window, select Administrators from the Group and user names section and Check Allow on Full Control, then Click OK to Apply changes.
- Now, from CMD container, Rename the DWORD value “HideBasedOnVelocityId” to be “ShowBasedOnVelocityId”.
- You may need to restart the Windows Explorer from the Task Manager to see the new changes, if necessary.
Now, You will show both of “Open Powershell” and “Open Command Prompt” options on the Context Menu When you hold shift + Right Click in the Window Explorer.
Hide “Open PowerShell window here” from Explorer’s Context Menu
To Hide “Open PowerShell Window” from Explorer’s Context Menu, Follow the instructions below:
- Follow the Steps 1 → 8 from the previous instructions, except in the step 3, change the Permissions for “PowerShell” instead of “CMD“.
- From Step 9, Rename the DWORD value “ShowBasedOnVelocityId” for “PowerShell“, to be “HideBasedOnVelocityId”.
- Again If necessary, you might need to restart Windows Explorer from the Task Manager.
Now, You should no longer see the “Open PowerShell window here” option in the context menu.
Third Method: Open Command Prompt directly from File Explorer
There is another way (hidden way) to open Command Prompt for a specific directory.
When you’re opening a file directory, select the path in Windows Explorer as shown below.
Remove this path, then type “cmd” and press Enter to open the Command Prompt in that folder.
Now, that was really easy!
Fourth Method: Open Command Prompt from Run
The last method that you can use to open Command Prompt is by using Windows Run, Simply hold down Windows Key + R to open Windows Run, then type CMD and press Enter.
To open Command Prompt as Administrator, hold Ctrl + Shift + Enter , Also you can pin the Command Prompt to your taskbar for future using quickly.
You May Also Like:
- Uninstall Kaspersky Completely & Reset Free Trial – Without Tools.
- How to Fix “You Do Not Have Permission To Access” Error.
- Best Budget Gaming CPUs in 2018.
- How to Convert Windows Install ESD or SWM Files to WIM File.