How to Use the Command Prompt to Find Windows Errors Codes and Fix Them (2024)

Encountering random errors and crashes while using the operating system without an explanation can be frustrating. It also makes it harder to find the appropriate solutions, because you have no clue what caused the problem in the first place.

In this guide, we will show you how you can use the Command Prompt utility to identify potential culprits behind annoying Windows errors. We will also discuss how you fix the issue using CMD as well.

How to Diagnose Windows Errors in the Command Prompt

To solve a problem in Windows, such as an update error or a Blue Screen of Death, it's important to identify the potential causes of the issue. Windows comes with several utilities that can help you with this, one of which is Command Prompt.

Below, we have discussed different ways of using Command Prompt to look up Windows error codes.

1. Use the NET HELPMSG Command

The NET HELPMSG command helps convert error codes into strings, which you can use to find relevant solutions for the problem. However, this command can only help you with system error codes, which are specific numerical values. This means you cannot use it for BSOD errors like the INACCESSIBLE_BOOT_DEVICE error.

Moreover, the numerical value of the error code must also be precise.

Here is how you can use this command:

  1. Press the Win + R keys together to open a Run dialog.
  2. Type "cmd" in Run and press the Ctrl + Shift + Enter keys together to open Command Prompt with administrative privileges.
  3. Click Yes in the User Account Control prompt.
  4. Once you are inside the Command Prompt window, type the command mentioned below and hit Enter to execute it. Replace <error code> with the numerical value of the code.
    NET HELPMSG <errorcode> 
  5. For instance, if the error code you want lookup is 8242, your command will be:
    NET HELPMSG 8242​​​ 
    How to Use the Command Prompt to Find Windows Errors Codes and Fix Them (1)

Once you have the details on the error code, you can either look for solutions online or jump to the solutions listed later in this guide.

2. Use the CertUtil Command

Another easy way to look up error descriptions using the Command Prompt is by using the CertUtil command. This command is typically used for managing certificates and certificate services, but can also be a helpful tool in finding short explanations for the error codes.

Here is how you can use it:

  1. Open Command Prompt using the steps we have described above.
  2. In the Command Prompt window, execute the command below. Replace <error code> with the error code you are encountering:
    CertUtil /error <errorcode> 
  3. So for instance, if you are encountering the update error 0x80070002, your command will be:
    CertUtil /error 0x80070002​​​​ 
    How to Use the Command Prompt to Find Windows Errors Codes and Fix Them (2)

You should now be presented with a description of the error message. You can use this detail to identify the culprit and eliminate it.

3. Access the Event Viewer

When you encounter an error on Windows, a log file for the error is created in the Event Viewer. This log file contains the details of the event, including the time and date it occurred, the error code associated with it, and the source of the event.

You can access the Event Viewer using the Command Prompt to identify the culprit behind the error, and then proceed with the relevant solutions to fix the problem.

How to Resolve the Problem Using the Command Prompt

Once you have identified the problem, you can use the Command Prompt utility to fix it as well. Windows comes with a set of troubleshooting utilities that can you can run via this command-line interface to resolve system issues once and for all.

Here are some common ways you can use the Command Prompt to diagnose and resolve various issues with your Windows operating system.

1. Fix Any Corruption Errors

There are a number of problems that may result from corruption errors and bugs within the operating system, such as frequent crashes and freezes, boot problems, data loss, and slow performance.

The easiest way to fix such issues is by running the built-in SFC and DISM tools via Command Prompt.

How to Use the Command Prompt to Find Windows Errors Codes and Fix Them (3)

SFC or the System File Checker works by scanning the protected system files to check their integrity. It will compare the files to a stable version stored in the Windows component store or the installation media. If a problem with the file is identified, the utility will automatically replace the file with its healthier counterpart and generate a report based on it.

DISM, on the other hand, can be used to repair a wide range of issues, including system files, problematic drivers, and a corrupt Windows image. It is considered to be more advanced and powerful than SFC.

Once you have completed an SFC scan, you can check the log file for more detailed information as well. Simply execute this command:

findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >"%userprofile%\Desktop\sfcdetails.txt 

Doing so will create a log file named sfcdetails.txt on your desktop, listing all the issues found during the scan.

2. Uninstall Windows Updates

There are times when an update you install on the system turns out to be buggy or corrupt, leading to different issues within the system.

Since Windows provides you with the option to uninstall updates, you can use Command Prompt to achieve this.

Simply open Command Prompt as an administrator and execute the command listed below to view a list of installed updates:

wmic qfe list brief /format:table 

To uninstall one, execute the following command. Replace <HotFixID> with the ID number of the update that you want to uninstall.

wusa /uninstall /kb:<HotFixID> 
How to Use the Command Prompt to Find Windows Errors Codes and Fix Them (4)

3. Fix Boot Issues

If you are having trouble booting into Windows, or the boot time is just painfully slow, the issue is likely to be related to the boot sector or boot configuration data (BCD).

You can use the bootrec command to repair these via Command Prompt.

Here is how you can do that:

  1. Boot into WinRE and head over to Repair your computer.
  2. Navigate to Troubleshoot > Advanced options.
    How to Use the Command Prompt to Find Windows Errors Codes and Fix Them (5)
  3. Choose Command Prompt from the list of options available.
  4. Once you are in the Command Prompt window, execute the following commands:
    bootrec /fixmbr bootrec /fixboot bootrec /rebuildbcd  
  5. If you are prompted with Add installation to boot list?, type Y and hit Enter.
  6. Once all the commands are executed, you can exit Command Prompt by typing exit and hitting Enter.
  7. Restart your computer, and you should be able to boot into Windows successfully!

The Command Prompt to the Rescue

Having knowledge of certain Windows tools can come in handy when dealing with various computer-related issues. One such utility that can help you find solutions is Command Prompt and knowing how to use it can save you both time and frustration.

We highly recommend backing up your essential data before making any changes to your operating system, just to be safe. With a little patience and some troubleshooting skills, you can get rid of annoying Windows errors for good.

  • Windows
  • Command Prompt
  • Windows 10

Your changes have been saved

Email is sent

Email has already been sent

Please verify your email address.

You’ve reached your account maximum for followed topics.

Manage Your List

Follow

Followed

Follow with Notifications

Follow

Unfollow

Readers like you help support MakeUseOf. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

How to Use the Command Prompt to Find Windows Errors Codes and Fix Them (2024)
Top Articles
Car Insurance for 30 Year Olds | Bankrate
Top 15 Global Destinations for Contemporary Art
Devotion Showtimes Near Xscape Theatres Blankenbaker 16
Ups Customer Center Locations
San Angelo, Texas: eine Oase für Kunstliebhaber
Moon Stone Pokemon Heart Gold
Urist Mcenforcer
Nco Leadership Center Of Excellence
Don Wallence Auto Sales Vehicles
Dee Dee Blanchard Crime Scene Photos
877-668-5260 | 18776685260 - Robocaller Warning!
Tap Tap Run Coupon Codes
Nikki Catsouras Head Cut In Half
Lenscrafters Westchester Mall
10000 Divided By 5
Progressbook Brunswick
Garrick Joker'' Hastings Sentenced
Pollen Count Central Islip
Syracuse Jr High Home Page
1Win - инновационное онлайн-казино и букмекерская контора
About Us | TQL Careers
All Buttons In Blox Fruits
Canvas Nthurston
The Ultimate Style Guide To Casual Dress Code For Women
Pekin Soccer Tournament
Effingham Bookings Florence Sc
Fsga Golf
Jeffers Funeral Home Obituaries Greeneville Tennessee
A Person That Creates Movie Basis Figgerits
Troy Gamefarm Prices
Afni Collections
Schooology Fcps
Worthington Industries Red Jacket
3 Ways to Format a Computer - wikiHow
Imagetrend Elite Delaware
49S Results Coral
Www Craigslist Com Shreveport Louisiana
Iban's staff
Acadis Portal Missouri
Giantess Feet Deviantart
Craigslist En Brownsville Texas
US-amerikanisches Fernsehen 2023 in Deutschland schauen
Nu Carnival Scenes
Flappy Bird Cool Math Games
Ratchet And Clank Tools Of Destruction Rpcs3 Freeze
25 Hotels TRULY CLOSEST to Woollett Aquatics Center, Irvine, CA
Erespassrider Ual
Goosetown Communications Guilford Ct
Charlotte North Carolina Craigslist Pets
Lake County Fl Trash Pickup Schedule
Latest Posts
Article information

Author: Arline Emard IV

Last Updated:

Views: 6524

Rating: 4.1 / 5 (52 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Arline Emard IV

Birthday: 1996-07-10

Address: 8912 Hintz Shore, West Louie, AZ 69363-0747

Phone: +13454700762376

Job: Administration Technician

Hobby: Paintball, Horseback riding, Cycling, Running, Macrame, Playing musical instruments, Soapmaking

Introduction: My name is Arline Emard IV, I am a cheerful, gorgeous, colorful, joyous, excited, super, inquisitive person who loves writing and wants to share my knowledge and understanding with you.