Here is How to Fix Command Prompt Not Working in Windows 10 Error


In the early days of computing, Command Prompt reigned the operating systems before the elegant graphic user interfaces became the primary mode of interaction with the computers. Today, the Command Prompt is mostly used by advanced users to troubleshoot specific Windows issues, perform administrative functions, and automate tasks via scripts and batch files.

Fix Command Prompt Not Working In Windows 10 Error

What should you do when you try to open the Command Prompt, and it throws an error instead of opening usually? That is the topic of today's guide. Let's take a look at some steps that can solve the Command Prompt not working error so you can go back and execute those commands.

Fun Fact: Command Prompt has a symbol at the beginning of the line that prompts the user for a command, indicating that it is ready for input and hence the name Command Prompt.

Let's begin.

1. Check Antivirus

Some antivirus software are known to cause problems with Command Prompt. One such antivirus is Avast. It is known to place the consent.exe file in quarantine causing the Command Prompt to crash. If you are using Avast, restore this file or look for an alternative antivirus.

Fix Command Prompt Not Working 24

If you are using some other antivirus, I would recommend disabling it once to see if it solves the Command Prompt not working error in your Windows 10 computer.

2. Command Prompt Shortcut

It is possible that the Start Menu is not working as intended. In that case, you can create a Command Prompt shortcut on your desktop to launch the same. To do so, right-click anywhere on your desktop and select Shortcut under New.

Fix Command Prompt Not Working 1

On the pop-up window, type cmd.exe (no need to browse to the location of the executable file) in the box, and then click on Next.

Fix Command Prompt Not Working 2

Give it a suitable name and click on Finish. Wait, there's some more to take care of.

Fix Command Prompt Not Working 3

That shortcut will launch the Command Prompt but not in administrator mode. For that, right-click on the newly created shortcut and select Properties.

Fix Command Prompt Not Working 4

Under the Shortcut tab, select Advanced.

Fix Command Prompt Not Working 5

Select Run as administrator here, click on OK, and you are done.

Fix Command Prompt Not Working 6

Try launching the Command Prompt now.

Note: This solution isn't suitable for shared computers for some users might end up messing with the system accidentally if they aren't sure what they're doing.

3. Create New User

The Command Prompt needs admin rights which means the user account that you've logged in with requires administrative privileges. If you do, maybe some files got corrupted resulting in the Command Prompt error. Let’s create a new user account to test this solution.

Press the Windows key+I shortcut on the keyboard to launch Settings and select Accounts.

Fix Command Prompt Not Working 7

Under Family & other users, select Add someone else to this PC.

Fix Command Prompt Not Working 8

Click on 'I don't have this person's sign-in information' here.

Fix Command Prompt Not Working 10

Now click on 'Add a user without a Microsoft account.'

Fix Command Prompt Not Working 11

Enter the desired username and password here and follow the on-screen instructions to create a new user account. Once done, switch user account by pressing the Windows key to launch the Start Menu and selecting the newly created user account under your current account.

Fix Command Prompt Not Working 9

Check if you can run the Command Prompt now.

4. Update Path of System Environment Variables

he Microsoft support staff recommends this so we figure it would work aptly. Type system environment variables in the Start Menu search and select the Edit option.

Fix Command Prompt Not Working 13

Under the Advanced tab, select Environment Variables.

Fix Command Prompt Not Working 14

Select Path here and click on Edit.

Fix Command Prompt Not Working 15

Click on New and add this to create a new path.

Fix Command Prompt Not Working 16

Now reboot your computer and check if you can launch the Command Prompt.

5. System File Checker (SFC)

Open PowerShell with admin rights by either searching for it in Windows Start Menu or right-clicking the Windows button. When it opens (blue background), you will execute the below command.

 SFC /Scannow
Fix Command Prompt Not Working 17
Pro Tip: PowerShell is the more advanced version of Command Prompt, and you can execute all CMD commands on PowerShell.

After that, SFC command will check for irregularities in your OS's system files and repair them, if necessary. It may take 15-20 minutes so sit back and relax. If it finds no errors, you will see a message that says something like ‘no integrity violations were found.’ If some corrupt files were found and repaired, you would see a message telling you that ‘corrupt files were repaired’ and ‘details are included in a CBS.log file’ with the path to the file also mentioned.

If files are repaired, I suggest you reboot your computer before trying to open the Command Prompt.


Sometimes, the SFC command fails to perform its duty because it fails to find or access the correct files from the Windows image. That is when you will run the DISM (Deployment Image Servicing and Management) command and re-run the SFC command again.

Open PowerShell again and run the below commands in that order one at a time.

Fix Command Prompt Not Working 18
 DISM /Online /Cleanup-Image /CheckHealth 
 DISM /Online /Cleanup-Image /ScanHealth
 DISM /Online /Cleanup-Image /RestoreHealth

Now go back to point 5 above and perform an SFC scan.

7. Remove Context Menu Items

When you install a new app or software, it adds a shortcut to the context menu. The context menu is pops up when you right-click on your desktop or within an app. Noticed some new options that were not there when you first started using Windows? To remove these context menu items, download ShellMenuView and ShellExView. I recommend you to take a backup at this point.

Fix Command Prompt Not Working 19

First, launch ShellMenuView, and under Menu Name, you will see all software and app context menu shortcuts that were not created by Microsoft. For example, PotPlayer is a third-party app while Microsoft developed Windows Media Player. Select all non-Microsoft context menu shortcuts and disable them by clicking on the red icon. Repeat the same process with ShellExView.

8. Safe Mode

Maybe a recently installed app is causing a conflict with the Command Prompt? To find out, reboot in Safe Mode. To do so, press and hold the Shift key on your keyboard and select Restart under the Power options in the Start Menu.

Fix Command Prompt Not Working 20

You PC will now reboot and you should see a blue screen with some options. Select Troubleshoot>Advanced options>Startup Settings>Restart. You can now choose to reboot into Safe Mode. Read more about the process here.

If the Command Prompt works in Safe Mode, you need to uninstall all recently installed apps and reinstall them one at a time to see which one breaks Command Prompt. I know it's a tedious process, but you have no choice.

9. System Restore

You can restore your computer to a previous point in time, and by doing so, you will restore balance to your universe or your PC. Note that your files and other data will not be deleted. That may eliminate and undo whatever broke the Command Prompt. To do so, search for Restore in Windows Start Menu and select Recovery.

Fix Command Prompt Not Working 21

Select Open system Restore.

Fix Command Prompt Not Working 22

You should now see all the system restore points made recently. Click on Show more restore points to reveal more options.

Fix Command Prompt Not Working 23

Select one and follow on-screen instructions to restore your PC. The process will take quite a while, and your system may reboot several times.

Your Wish is My Command

While you can use PowerShell to execute any command that you wanted to use in Command Prompt, it is still a good idea to fix the former because it may cause further trouble in the future. If you found another way to fix the Command Prompt, do let us know in the comments below.



How You Feel About This Post

Like Our Content ? Enter Your Email and Get Daily Dose of Infotainment Stories

Similar Posts For You


5G,2,Abaya,14,Adobe,2,Ahmed Ali Butt,1,Ahsan Khan,3,Aima Baig,7,Aiman khan,25,Ali Zafar,1,Alizeh Shah,11,Alizeh Tahir,1,Alyzeh,1,Amna Malik,1,Android,53,Apple,20,Apps,739,Arij Fatima,1,Arisha Razi,1,Armeena,1,Ayesha Khan,3,Ayesha Umer,3,Ayeza Khan,32,Azekah,2,Bags,1,Bollywood,87,Breakfast,1,Bridal Dresses,21,Bushra Amir,1,Celebrities,1536,Children Prints,8,Cookware,1,Dresses,385,Dropbox,1,Dua Malik,1,Facebook,59,Fahad Mustafa,2,Fashion,499,Fatima Effendi,5,Fawad Khan,6,Firefox,4,Fiza Ali,3,Food,29,Gadets iPhone,11,Gadgets,945,Gents,1,Gents Dress,27,Gmail,12,Google,73,Google Assistant,8,Google Duo,8,Google Gboard,7,Google Maps,19,Google Photos,8,Google Pixel,2,Google Play Store,3,Hair Styles,16,Hamza Ali,10,Hania Amir,12,Hareem Farooq,4,Health,85,Hera Mani,14,Hijab,7,Hina Altaf,5,Hollywood,9,How To,337,HTC,5,Huawei,154,Humayun Saeed,1,Iman Aly,1,Imran Khan,1,Infinix,16,Instagram,57,iOS,70,Iqra Aziz,24,Iqrar Ul Hassan,12,Javeria,4,Juggan,2,Junaid Khan,2,Kinza Hashmi,10,Kiran Haq,2,Komal Rizvi,3,Ladies Cloths,213,Laptops,1,Lenovo,13,LG,24,Mac,6,Mahira,25,Makeup,16,Mansha,3,Mathira,3,Mawra Hocane,12,Maya Ali,19,Mehndi Styles,38,Mehwish Hayat,17,Meizu,19,Microsoft,6,Minal Khan,26,Mix topics,927,Mobilink,15,Momal Sheikh,4,Momina Mustahsen,2,Motorola,20,Music,46,Nadia Hussain,1,Naheed,1,Nail Art,1,Naimal,14,Neelam Muneer,6,Neelam Usaf,1,Netflix,3,Nida Yasir,13,Nimra Khan,7,Nokia,44,Nubia X,6,Office,1,OnePlus,17,Oppo,63,Pak Army,1,Pixel,1,PTCL,4,Qmobile,2,Ramsha Khan,1,Realme,22,Reema Khan,10,Resham,1,Saba Qamar,13,Sabeeka Imam,2,Sabeena,1,Saboor Aly,6,Sadaf kanwal,9,Sadia,2,Sadia Faisal,4,Sadia Khan,4,Saheefa,1,Sahiba,1,Sajal Ali,20,Samsung,160,Sana Fakhar,6,Sana Javed,3,Sanam Baloch,4,Sanam Jung,3,Sania Mirza,3,Saniya Shamshad,5,Sapphire,1,Sara Razi,2,Sarah Khan,10,SCO,1,Shaista Lodhi,3,Shawls,3,Sheheryar Munawar,3,Shehzad Sheikh,1,Shoes,16,Showbiz,1732,Sidra Batool,1,Skin Care,9,Skype,6,Snapchat,13,Sohai,1,Sony,11,Sonya Hussain,3,SoundCloud,1,Sports,83,Startups,4,Sumbal,4,Summer Outfits,61,Suzain,1,Syed Jibran,7,Tech,1910,Techno,9,Telegram,4,Telenor,10,TikTok,8,TV,4,TV Series,197,Twitter,21,Uber,2,Ufone,3,Urwa Hocane,9,Ushna Shah,1,Vena Malik,2,Videos,88,Vivo,60,W,1,Wahaj Ali,1,WhatsApp,84,Windows,111,Winter Collection,6,WordPress,1,Xiaomi,100,Yashma Gill,2,YouTube,23,Yumna Zaidi,1,Zara Noor,17,Zarnish,5,Zenfone,2,Zhalay,1,Zong,4,
Daily InfoTainment: Here is How to Fix Command Prompt Not Working in Windows 10 Error
Here is How to Fix Command Prompt Not Working in Windows 10 Error
Daily InfoTainment
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy