StorDiag.exe is a new command line drive tool to analyze storage on devices running Windows 10 that Microsoft added silently to the Anniversary Update.
The program is a diagnostic tool that you may use to identify storage related issues. Issues that it may detect including corruption of the NTFS file system.
There is more to the program than that though. You may use it to run a an ETW trace as well, and check the logs, Registry files and event files StorDiag.exe creates when it is done with the processing.
The application runs several tools in the background for that, including CheckDisk, fsutil and fltmc.
The application can only be run from an elevated command prompt. Since it is only available in Windows 10's Anniversary Edition, instructions are only provided for this particular version of Windows.
First thing you need to do is open an elevated command prompt.
The program supports three parameters that you can run it with. You may run stordiag.exe /? first to display them on the screen.
Collects storage and filesystem diagnostic logs and outputs them to a folder.
StorDiag [-collectEtw] [-out <PATH>]
-collectEtw Collect a 30-second long ETW trace if run from an elevated session
-collectPerf Collect disk performance counters
-checkFSConsistency Checks for the consistency of the NTFS file system
-diagnostic outputs a storage diagnostic report
-bootdiag output boot sectors of the disk
-driverdiag output avaliable storport and storahci logs
-out <PATH> Specify the output path. If not specified, logs are saved to %TEMP%\StorDiag
You may run the application with all commands, or only some of them.
If you want to run them all, use the following command to do so:
stordiag.exe -collectEtw -checkFSConsistency -out c:\users\martin\desktop
Note: You need to change "martin" in the out path to the username on your system. You may also leave the -out path part. If you do, all logs are saved to a StorDiag folder on the system's temp folder. Simply copy and paste %TEMP%\StorDiag in the Explorer address bar and the location should open.
The processing takes a couple of minutes tops. It depends largely on the number of storage devices connected to the Windows 10 machine at the time.
The program will check all drives for corruption using CheckDisk, and will collect a 30 second ETW trace. It runs several tools in the background and logs their output.
You find the massive list of log files and event files in the -out directory afterwards.
Volume C Corruption.txt
Volume O Corruption.txt
Volume P Corruption.txt
Volume S Corruption.txt
Volume T Corruption.txt
The CheckDisk information about each drive and potential corruption are probably most useful to users of the operating system.
System administrators find lots of information in the other files that they may use to analyze storage related issues.
StorDiag.exe does not resolve any of the issues that it may report. It is up to you or the system administrator to correct those.Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.