StorDiag.exe is a new command line for collecting storage and file system diagnostic logs that Microsoft quietly added to the Anniversary Update. It’s a system tool that is useful to collect and identify storage related issues to proactively prevent NTFS file system corruption from happening. On top of that, it can also run an ETW trace, check for the consistency of the NTFS file system.
The usage of the tool is easy. It goes something like this:
StorDiag [-collectEtw] [-checkFSConsistency] [-out <PATH>]
-collectEtw is to collect a 30-second long ETW trace if run from an elevated session.
-checkFSConsistency is to check the consistency of the NTFS system
-out <PATH> is to specify the output path where all the log files are saved.
Note that, if not specified, the log files will be saved to %TEMP%\StorDiag.zip file by default. For example, if you only run StorDiag.exe without any parameters, you will need to go to %TEMP% folder and open up the StorDiag.zip file to check out the result.
To get a thorough report, run the command with all the parameters in an elevated Command Prompt window. The following command runs a comprehensive diagnostic and saves a full report on my desktop.
StorDiag.exe -collectEtw -checkFSConsistency -out %userprofile%\desktop
The process could take a couple of minutes to finish, depending on the number of storage devices connected to the Windows 10 system. It will check all the drives for corruption using ChkDisk first, then collect a 30-second ETW trace, running a few tools in the background and logs their output.
Below is the list of log files StorDiag.exe generates. You can find all the files in the StorDiag.zip file in the path you specified in the command.
- ChkDsk <drive-letter>.txt (each letter gets a separate file)
- <DIR> LocaleMetaData
- Volume <drive-letter> Corruption.txt (each drive gets a separate file)
StorDiag.exe is a great tool for IT Pros to help their day to day work. Even though it doesn’t resolve any of the issues that it discovers, it provides a in-depth information where the issues are, greatly speed up the troubleshoot process.
Latest posts by Kent Chen (see all)
- Microsoft Pauses New Insider Preview Builds for the New Unified Update Platform - December 7, 2016
- How To Disable Removable USB Storage Read, Write and Execute Access on Windows 10 - December 1, 2016
- Windows 10 Tip: How To Move System Tray to the Second Display - November 30, 2016
Last updated: 08/25/2016