How To Replace PowerShell With CMD In Windows. Microsoft introduced PowerShell as the default terminal in newer Windows versions, replacing the classic Command Prompt (CMD) in key areas like the WinX menu and context menus. While PowerShell is undeniably powerful, many users still prefer CMD for its simplicity and ease of use.
In this guide, you’ll learn how to replace PowerShell with CMD across various areas in Windows, including the WinX menu and the right-click context menu. This method works on both Windows 10 and Windows 11.
PowerShell vs Command Prompt: What’s the Difference?
Before you dive into the steps, it’s helpful to understand why some users prefer CMD over PowerShell.
Command Prompt (CMD):
A traditional command-line tool used to execute basic system commands like copying files, changing directories, and managing system processes. It’s fast and familiar to many long-time Windows users.
PowerShell:
A more advanced shell developed for system administrators, supporting scripts and automation with a richer command set. It allows users to perform complex administrative tasks that CMD cannot handle.
Even though PowerShell offers more capabilities, users who only require basic command-line functions often find CMD quicker and more user-friendly.
How To Replace PowerShell With CMD in the WinX Menu?
The WinX menu appears when you right-click the Start button or press Windows + X. In modern versions of Windows, this menu defaults to PowerShell. Here’s how to switch it back to CMD.
Step-by-Step Instructions:
1.Right-click on the taskbar.
2.Select Taskbar settings.
3.Scroll down to find the setting:
“Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key + X.”
4.Toggle this option off.
After this, the Command Prompt will once again be available in your WinX menu, replacing PowerShell.
How To Replace PowerShell With CMD in the Context Menu?
The context menu appears when you Shift + Right-click in a folder or directory. If you want CMD to show up instead of PowerShell, you’ll need to edit the Windows Registry.
⚠️ Warning: Editing the Windows Registry can affect system stability. Always back up your registry before making changes.
Method 1:-Using a Registry Script:
1.Open Notepad as administrator.
2.Copy and paste the following code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
@=”@shell32.dll,-8506″
“Extended”=””
“NoWorkingDirectory”=””
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
@=”cmd.exe /s /k pushd \”%V\””
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt]
@=”@shell32.dll,-8506″
“Extended”=””
“NoWorkingDirectory”=””
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt\command]
@=”cmd.exe /s /k pushd \”%V\””
[HKEY_CLASSES_ROOT\Drive\shell\cmdprompt]
@=”@shell32.dll,-8506″
“Extended”=””
“NoWorkingDirectory”=””
[HKEY_CLASSES_ROOT\Drive\shell\cmdprompt\command]
@=”cmd.exe /s /k pushd \”%V\””
3.Save the file as cmd_replace.reg. Ensure the file extension is .reg.
4.Double-click the file and accept the prompt to merge it into the registry.
5.Restart File Explorer via Task Manager.
6.Once this is done, CMD will appear in the context menu instead of PowerShell.
How To Replace PowerShell With CMD via Manual Registry Editing?
For users who prefer hands-on control, you can manually edit the registry to achieve the same result.
Steps to Follow:
1.Press Windows + R and type regedit.
2.Press the Enter key.
3.Navigate to the following path or paste it in the Registry editor’s address bar:
Computer\HKEY_CLASSES_ROOT\Directory\Background\shell
4.Locate the cmd key. If it doesn’t exist, create it.
5.Right-click cmd > Permissions > Advanced.
6.Change ownership to your current user and grant Full Control.
7.Select the Change button next to Owner on top of Advanced.
8.In the input field, enter your username.
9.Press Enter.
10.Back in the Permissions window.
11.Select Administrators from the top section.
12.Select Full Control from the bottom section..
13.Then, select Apply.
14.In the CMD pane, delete the HideBasedOnVelocityId value.
8.Repeat the steps for the powershell key.
9.For the PowerShell entry, add a new DWORD (32-bit) named HideBasedOnVelocityId and set its value to 639bc8.
10.Restart File Explorer.
You have now successfully removed PowerShell and brought back CMD in the context menu.
Why Replace PowerShell With CMD?
There are multiple reasons why users want to bring back CMD:
Familiarity:
Many users grew up using CMD and find it easier to navigate.
Speed:
CMD loads faster and is more responsive for simple tasks.
Simplicity:
Basic commands are easier to execute without needing complex syntax.
Reduced Risk:
CMD lacks scripting features that can unintentionally harm system settings, making it safer for basic users.
Whether you’re a casual user or someone managing multiple systems, knowing how to replace PowerShell with CMD can make your daily tasks more efficient.
Final Thoughts:
Although PowerShell is a more robust tool for system management and scripting, CMD still holds its value for many users. Whether you’re looking for a simpler interface or trying to restore a familiar workflow, the methods above provide effective ways to replace PowerShell with Command Prompt in both the WinX menu and right-click context menu.
Now that you know how to replace PowerShell with CMD, try one of the methods that suits your level of comfort—whether it’s using the graphical settings or diving into the registry.