SetupDiag.exe helps you diagnose Windows 10 upgrade errors

Only admnistrator owned posts can execute the include me shortcode

Windows updates are usually installed on your PC without problems. But there are times when it takes a little work, especially when it comes to compatibility and fixes. If you encounter such failed update errors, you must first manually search for the error code, then search for the steps to follow to correct them. All this takes time. Microsoft has therefore found a simple solution – SetupDiag.exe.

SetupDiag.exe is a standalone diagnostic tool that you can use to find out why an upgrade to Windows 10 could not be installed. If you know that the update process in Windows 10 has been completely streamlined, but that does not mean that there is not always a problem, so the tool.

How SetupDiag

Only admnistrator owned posts can execute the include me shortcode

SetupDiag.exe requires Microsoft.NET Framework 4 to be installed on your PC. The tool examines Windows configuration log files and analyzes them to find the cause of an error when updating or upgrading your computer to Windows 10. SetupDiag can run on the computer that could not be updated, or you can export the computer logs to another location and run SetupDiag in offline mode.

Once the tool has been commissioned, it can also be used for testing and analysis. Whenever Windows is faced with a situation that could compromise the safe operation of the system, the system will shut down. This condition is called bug check. It is also commonly called a:

  1. System crash
  2. Kernel error
  3. Shutdown error or BSOD

The typical cause of this problem is either a hardware device, hardware driver or associated software.

If the error check occurs during an upgrade, Windows Setup extracts a minidump file (setupmem.dmp).

To debug a configuration error check, you must :

Specify /mode : Offline and /LogsPath and try to get the installation file (setupmem.dmp) from the faulty system.

Note: You cannot debug dumps in online mode.

You can find Setupmem.dmp at




Depending on when the error check takes place.

You can then install the Windows debugging tools on the computer running SetupDiag. If you run the tool without settings, it attempts to find the log files that Windows 10 creates during the upgrade process in the default folders of the device.

The program also creates a results.log file in its directory after the scan is complete. Any upgrade problems that have occurred are quickly detected in the log files during scanning.

In addition, SetupDiag creates a zip archive of all processed log files and also saves the file in the same directory.

Finally, it is possible to run SetupDiag.exe even in offline mode to scan copied folders from another device.

For detailed information on using SetupDiag.exe, refer to this Microsoft documentation.

Only admnistrator owned posts can execute the include me shortcode