CMD is Not Working in Windows 11: How to Safely Fix it

Use the System Restore or tweak the Environmental Variable to fix the problem

by Sagar Naresh
Sagar Naresh
Sagar Naresh
Content Analyst
Sagar is a web developer and technology journalist. Currently associated with WindowsReport and SamMobile. When not writing, he is either at the gym sweating it out or playing... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • CMD is a great command line tool that helps you run various commands and troubleshoot your PC.
  • If that doesn't work, it could hamper your work and testing of certain apps.
  • You can try disabling your Firewall or use a specialized tool to fix corrupt system files.

Fix Windows 11 OS errors with Restoro PC Repair Tool:This software repairs common computer errors by replacing the problematic system files with the initial working versions. It also keeps you away from critical file loss, hardware failure, and repairs damages made by malware and viruses. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows 11 issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

Using a command prompt or CMD, developers test their codes, and a regular user runs various commands, such as SFC Scan, Disk Management, etc. However, many users have reported that on their Windows 11 PC, the CMD is not working.

CMD fails to work for different reasons, which we will discuss in this guide. Also, we will share with you many practical solutions to help you resolve the CMD not working in Windows 11 problem. So let us check it out.

What are the different ways to access the command prompt?

Here are the different ways you can use to open the command prompt:

  • Using Task Manager.
    • Open Task Manager.
    • Click Run new task.
    • Type CMD.
  • Open the command prompt from the Windows search option.
    • Open the Start menu.
    • Type command prompt and open it.
  • Open CMD from the File Explorer.
    • Open File Explorer.
    • Go to C:\Windows\System32.
    • Open the cmd.exe file.
  • Use the Run dialogue to open the command prompt.
    • Open the Run dialogue.
    • Type cmd.
    • Click OK.

How can I fix CMD not working in Windows 11 problem?

In this article

1. Disable Antivirus or Firewall

  1. Open the Start menu by pressing the Win key.
  2. Type Windows Defender Firewall and open it.
  3. Click Turn off Windows Defender Firewall from the left pane.
  4. Check the Turn off Windows Defender Firewall (not recommended) radio option for both Public and Private networks.

Often having aggressive Firewall settings can lead to the blockage of important functions on your PC. We have shown the methods for the Windows Defender Firewall, but you can do the same with your antivirus software.

2. Use a specialized tool

  1. Download Restoro on your PC.
  2. Install the program.
  3. The tool will start scanning for issues automatically.
  4. Restoro will identify the status of your system.
  5. It will then create a system profile.
  6. Once the scan is complete, you can hit the Start Repair button to resolve the issues.

Since CMD is not working in Windows 11, you can use a dedicated specialized tool called Restoro.

Restoro will help you scan your PC and repair the missing or corrupt system files. You can also use Restoro to fix damaged DLLs, fix BSOD errors, remove spyware or malware, fix system crashes, and more.


Effortlessly repair PC problems with this fully automated PC repair and optimization software.

Free trial Visit website

3. Edit the environment variable

  1. Press the Win + R keys to open the Run dialogue.
  2. Type sysdm.cpl and press the OK button.
  3. Switch to the Advanced tab.
  4. Click on the Environment Variable button.
  5. Choose Path.
  6. Click on Edit.
  7. Click on New.
  8. Type the following command: C:\Windows\SysWow64\
  9. Press OK.
  10. Restart your PC.

The environmental variable is a dynamic named value that affects how the processes work on your PC. Often you can tweak it and fix the problem associated with CMD.

4. Scan your PC for virus

  1. Press the Win + I keys to open the Settings menu.
  2. Select the Privacy and Security tab from the left pane.
  3. Click on Windows Security.
  4. Choose the Virus and Threat option.
  5. Then, hit the Quick Scan button.
  6. You can also select Scan options and select Full Scan for a deeper scan on your PC.

Chances are that your PC is infected with a virus or malware that might have disabled the CMD, so you cannot run high commands and fix the issue.

You can follow the above steps, scan your PC for viruses, and remove it to fix the CMD not working in the Windows 11 problem.

5. Run SFC Scan using PowerShell

  1. Press the Win key and open the Start menu.
  2. Type powershell and open Windows PowerShell as an admin.
  3. Type the below command and press Enter: sfc /scannow
  4. Wait for the scan to complete.
  5. After completion, close Windows PowerShell.
  6. Restart your PC and see if this resolves the issue or not.

Expert tip:


Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

While you can use a specialized tool such as Restoro to fix corrupt or missing system files, you can also run the in-built SFC Scan command using Windows PowerShell.

This command helps fix the various issues related to system files automatically. It replaces the corrupt or missing system file with the new one without much input. Try running the command and see if this fixes the CMD not working in Windows 11.

6. Run CMD in safe mode

  1. Open the Start menu by pressing the Windows key.
  2. Click on the Power key.
  3. Press and hold the Shift key on your keyboard, and click on Restart.
  4. Select Troubleshoot.
  5. Click on Advanced options.
  6. Select Command Prompt.

This could be helpful in ways when you want to run the command prompt urgently, and CMD is not working on your Windows 11 PC. Booting in safe mode will stop all the unnecessary background apps from running and give you a clean environment to work on.

Also, if the command prompt is working without any issues in safe mode, then there are some malware or virus-related issues with your PC.

We have a guide to help you understand the different ways to access Safe Mode on your Windows 11 PC.

7. Use system restore

  1. Open the Start menu by pressing the Windows key.
  2. Type create a restore point and open it.
  3. Hit the System Restore button.
  4. Click Next.
  5. Select the restore point and click on Next.
  6. Hit the Finish button to begin the system restore process.

If nothing works, then we would suggest you perform a system restore. This will help you go back to a time in your PC when everything was working fine.

However, note that the system restore will only work when you create a system restore point. For that, we have a dedicated guide to help you make a restore point on your Windows 11 PC.

That is it from us in this guide. Next, check out our guide to help resolve the CMD not running as an administrator in7 easy steps.

In the comments below, let us know which of the above solutions helped you fix the CMD not working in the Windows 11 issue.

Still having issues? Fix them with this tool:


If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: