Windows PowerShell is the new avatar of the Command Prompt offering new features and capabilities. With the Windows 10 Creators Update, Microsoft replaced CMD with PowerShell. If you cannot find the option to launch the Command Prompt from the Power User Menu and the Context menu, there are a couple of ways to make things right. In this tutorial, see how we can replace PowerShell with CMD or in Windows 10 and 11.

There are more than 18 ways to open the Command Prompt in Windows. However, this article will discuss 3 methods to replace PowerShell with Command Prompt from settings, a Registry Editor tweaks, and via the context menu.

Table of Content

1. Restoring CMD in the Power User Menu

This tip to replace PowerShell with the Command Prompt in the Power User Menu works only in Windows 10. Follow the quick steps below to restore the CMD shortcut in the Power User Menu on your PC.

  1. Click Start (Windows icon) and choose Settings.windows start menu
  2. Next, click Personalization. You can access the personalization menu by right-clicking on the desktop screen and selecting the Personalize option.windows 11 settings
  3. Now click Taskbar in the left-hand pane in the Settings window.
  4. After that, click the toggle button below ‘Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows Logo Key + X‘ on the right panel.replace powershell with command prompt in windows

Once you have done that the 2 options to open Powershell in the Power User Menu will be replaced by Command Prompt and Command Prompt (Admin) respectively as shown below.

windows power user menu

2. Replace PowerShell with CMD in File Explorer

If you want to open Command Prompt instead of PowerShell in a folder or File Explorer, there are some Registry Editor tweaks to make this happen. Let’s begin.

  1. Press the Windows Logo key on your keyboard, look for the Notepad++ app in the Start menu, and open it.open notepad++ in windows 10
  2. Now, copy the following code and paste it into the empty Notepad file.
    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. Click File and choose the Save As… option.save edited registry file
  4. When you click the Save As… option, you’ll be prompted to assign a file name and type. Click the File name section and type ‘cmdfix.reg‘ as the file name. Then click the drop-down icon in front of the Save as type box and select All Files. Finally, Save the file to your preferred location.save edited registry file in windows
  5. Once you have saved the file, navigate to cmdfix.reg and double-click it. When prompted, choose Yes.
  6. Next, you’ll see a pop-up window asking if you want to add the new configuration to the registry. Choose Yes.registry editor tweak to replace powershell with cmd in windows 11
  7. The newly created cmdfix.reg will be added to the registry.registry editing to replace powershell with cmd in windows 11

You have successfully replaced PowerShell with CMD in the Windows 10 or 11 right-click context menu. Do not forget to check out our detailed tutorial on customizing the Windows context menu. You should now be able to open the Command Prompt instead of PowerShell in a folder.

To undo the changes made by this registry editor tweak anytime later, paste the following text into a new notepad file.

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\shell\cmd2]

[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmd2]

[-HKEY_CLASSES_ROOT\Drive\shell\cmd2]

[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\cmd2]

Make sure you name this notepad file as ‘Defaultcmd.reg‘ and select ‘All Files‘ as the file type before saving it. Double-click the file, and select Yes. Don’t forget to restart your computer at this point.

Don’t Miss: 250+ Keyboard Shortcuts for Windows 10 and 11

3. Edit Registry Entries to Replace PowerShell with CMD

While the trick mentioned above should work fine, there’s another way to replace PowerShell with Command Prompt in Windows 10 and 11. This method involves manually editing the registry entries.

  1. Click the Search icon, type “registry” in the text box, and click Registry Editor.open registry editor in windows 10
  2. Alternatively, you can open the Run window by pressing Windows Logo Key + R, and type “regedit” to open Registry Editor.open registry editor via run app
  3. Now, navigate to HKEY_CLASSES_ROOT\Directory\shell\cmd.registry editor cmd directory permission change
  4. Right-click the cmd folder and choose Permissions from the context menu.
  5. When a small window entitled Permissions for cmd pops up, click the Advanced button.
  6.  The Advanced Security Settings window will appear. Click the Change option to change the permission settings for the Owner.advanced security settings windows 11
  7. In the Select User or Group window, click the Advanced button.
  8. In the window that pops up next, click the Find Now button. Then select your user group from the search results and click OK.select user group for permission change in windows 10
  9. When you return to the Advanced Security Settings for cmd window, check the Replace owner on subcontainers and objects option. Then click Apply and OK respectively.advanced security settings to change command prompt permission in windows 10
  10. Finally, you’ll return to the Permissions for cmd window from where you initially started. Now, select Administrators under Group or user names, and check the Allow box next to Full Control under Permissions for Administrators. Click the Apply button followed by OK. take full control of cmd registry entry
  11. Navigate to HKEY_CLASSES_ROOT\Directory\shell\cmd path in the Registry Editor, right-click the HideBasedOnVelocityId entry. Choose the Rename option.rename HideBasedOnVelocityId dword in registry editor windows 10
  12. Rename the entry to ShowBasedOnVelocityId.ShowBasedOnVelocityId-dword in registry editor windows 10
  13. As soon as the name of the DWORD entry is changed, PowerShell will be replaced by CMD in the right-click menu in Windows 10 or 11 but you will have to restart your PC first.

Done! Now, open a folder and press the Shift key + right-click. You should be able to open Command Prompt instead of PowerShell in a folder. You’ll have the option to open PowerShell and Command Prompt both in the context menu in the File Explorer.open command prompt and powershell window in windows 10

In case you want to remove the Open PowerShell window here option from the File Explorer context menu do as directed below. The steps are almost the same as you went through a while ago to replace PowerShell with the Command Prompt in the right-click menu.

  1. Open Registry Editor and navigate to HKEY_CLASSES_ROOT\Directory\shell\PowerShell.
  2. Right-click on PowerShell and then select Permissions from the context menu.
  3. Now repeat Steps 5-10 from above.
  4. After that, right-click on ShowBasedOnVelocityId and rename it to HideBasedOnVelocityId.
  5. The Open Powershell window here option will be removed from the context menu.
  6. Reboot your Windows computer to make the changes you made take effect.
5 Ways to Restore Deleted Contacts on Android

Replacing Command Prompt with PowerShell

If you want to replace the Command Prompt with PowerShell in the File Explorer right-click menu, follow the quick steps below.

  1. Open the Registry Editor and navigate to HKEY_CLASSES_ROOT\Directory\shell\cmd.
  2. Right-click on ShowBasedOnVelocityld and rename it to HideBasedOnVelocityld.
  3. Now, navigate to HKEY_CLASSES_ROOT\Directory\shell\PowerShell, right-click on HideBasedOnVelocityld, and rename it to ShowBasedOnVelocityld.
  4. Finally, restart your PC.

If you get stuck at any step and need help or have something to share about the topic, leave a comment below.

Read Next: How to Enable God Mode on Windows 10 & 11

Was this Article helpful?
YesNo