Fix Command Prompt Not Working on Windows 11/10 - TechHarry

Simple ways to fix command prompt not working error on Windows 11 and Windows 10

If you are facing problems regarding command prompt on your Windows 11 or Windows 10 PC, then you are at the right place. Here you'll the accurate solution for your command prompt problem.

Command Prompt is a very powerful Windows Utility program that allows users to perform advanced administrative tasks. It is generally used for simple troubleshooting to solve common system errors and bugs. So, if you got a problem in opening the command prompt, then it should be quickly resolved. Here, in this article, we have lots of simple ways to troubleshoot the command prompt and fix the command prompt not working on Windows 11/10.

So, let's get to the point.

1. Scan Your PC for Viruses and Malware

Viruses can be a major problem for your PC. It can damage your PC internally and this can be the reason behind why the command prompt has stopped working. So, check your PC for viruses and malware. There are many anti-viruses available for Windows 11 and Windows 10 like anti-viruses from Norton, McAfee, Avira, etc. So, first, scan your Windows 11/10 device and remove all the unnecessary and infected files as soon as possible.

2. Run the System File Checker Scan

SFS or System File Checker is an in-built Windows utility application that finds and replaces corrupt system files with a cached copy. By using an SFC scan on your PC, you can easily fix corrupt system files and other distinctions. Generally, SFC Scan works on Command Line Terminal. But due to an error in Command Prompt, you can also perform Windows PowerShell as its alternative.

To run an SFC scan, you should perform the following steps:

1. Search for PowerShell and click on the PowerShell icon.

2. In the PowerShell window, type sfc/scannow and hit enter to execute the command.

3. Now relax and let SFC scans your computer. The process will take a few seconds. After scanning is complete, restart your computer, and try to open the command prompt. If it's opened it means the command prompt is fixed.

3. Boot into Safe Mode

Safe Mode reboots your PC with a minimal set of drivers and resources. This method is used for troubleshooting critical issues. For booting into safe mode, perform the following steps:

1. Search for "System Configuration" and hit Enter.

2. Here, go to the Boot section from the top menu.

3. Now check the "Safe Boot" and select "Minimal" and then press OK.

After your PC boots in Safe Mode, launch the Command Prompt to check whether it's fixed or not.

4. Update Environment Variables Path

The next way to fix the command prompt on Windows 11/10 is by updating the system environment variables path. It is essential security control. It specifies the directories to be searched to find a command. To update the system environment variable path, perform the following steps:

1. Press Windows + 'r' keys on your keyboard.

2. Type Sysdm.cpl in the dialogbox and hit Enter.

3. Here, in the system properties, go to the Advanced tab and then click on "Environment Variables".

4. Now click on Path and then click the Edit button.

5. Now on the next window, click on the New button and enter the following path:


6. After performing all the steps, click on OK. Finally, reboot your PC and check the command prompt error is fixed or not.

5. Restore Your System

This is the last option if none of the above-mentioned ways fix the command prompt on your Windows 11/10 PC. System Restore is another very powerful Windows utility that can undo everything to its default settings. To perform a system restore on Windows 11/10, follow the below-given steps.

1. Click on the search bar and type "Create a Restore Point" and hit Enter.

2. Switch to System Protection and then System Restore.

3. Pick a restore point and follow the on-screen instructions to undo your device to a previous checkpoint.