How to Use Storage Diagnostic Tool in Windows 10


Windows 10 Anniversary Update includes a Storage Diagnostic tool (stordiag.exe) that collects storage and file system diagnostic logs and outputs them to a folder. The application runs several tools in the background for that, including CheckDisk, fsutil and fltmc.

The tool can be helpful to use to analyze and identify storage related issues. It can be used to check the consistency of the NTFS file system and run a 30 second long Event Tracing | Microsoft Docs trace.
How to Use Storage Diagnostic Tool in Windows 10-stordiag_command.png

This tutorial will show you how to use the Storage Diagnostic tool (stordiag.exe) to collect storage and file system diagnostic logs in Windows 10.


EXAMPLE: Output from Storage Diagnostic tool (stordiag.exe)
How to Use Storage Diagnostic Tool in Windows 10-stordiag_output.png



Here's How:

1 Open an elevated command prompt.

2 Copy and paste the command below that you would like to use into the command prompt, and press Enter. (see screenshots below)

This will output the results into a StorDiag folder on your desktop.


(StorDiag)
stordiag -out %UserProfile%\Desktop


(StorDiag + ETW trace)
stordiag -collectEtw -out %UserProfile%\Desktop


(StorDiag + check of NTFS file system)
stordiag -checkFSConsistency -out %UserProfile%\Desktop


FULL - (StorDiag + ETW trace + check of NTFS file system)
stordiag -collectEtw -checkFSConsistency -out %UserProfile%\Desktop

How to Use Storage Diagnostic Tool in Windows 10-stordiag-1.png
How to Use Storage Diagnostic Tool in Windows 10-stordiag-2.png


That's it,
Shawn