File System and Storage Diagnostic Tool StorDiag.exe in Windows 10

The Windows 10 Redstone 1 update silently adds a new console tool (StorDiag.exe) which can be used to collect storage and file system diagnostic logs. This is a useful tool for identifying problems with your hard drive or the file system, and the collected data can be helpful for troubleshooting purposes.

Running StorDiag.exe

Open Command Prompt (Admin) and type:

StorDiag.exe /?

This shows the following information:

Collects storage and filesystem diagnostic logs and outputs them to a folder.

StorDiag [-collectEtw] [-out <PATH>]
Argument Description
-collectEtw Collect a 30-second long ETW trace if run from an elevated session
-checkFSConsistency Checks for the consistency of the NTFS file system
-collectPerf Collect disk performance counters
-diagnostic outputs a storage diagnostic report
-bootdiag output boot sectors of the disk
-driverdiag output available storport and storahci logs
-out <PATH> Specify the output path. If not specified, logs are saved to %TEMP%\StorDiag

To check for file system consistency, run the following command:



stordiag.exe -checkFSConsistency -out %userprofile%\desktop

This tool gets the list of volumes and runs Chkdsk on each of the volumes (without repairing), exports the registry keys for each storage device as well as file system related settings, exports several event logs (relating to disk drives and file system) to separate .evtx files. It also gets storage reliability counters for each volume and stores the output to a text file named PSLogs.txt. Here is the list of log files this tool generates:

ChkDsk C.txt
ChkDsk D.txt
PSLogs.txt
Volume C Corruption.txt
Volume D Corruption.txt
CDROM.reg
DiskDrive.reg
FileSystem.reg
HDC.reg
SCSIAdapter.reg
VolMgr.reg
VolSnap.reg
Volume.reg
Microsoft-Windows-DataIntegrityScan-Admin.evtx
Microsoft-Windows-DataIntegrityScan-CrashRecovery.evtx
Microsoft-Windows-DiskDiagnostic.evtx
Microsoft-Windows-Ntfs.evtx
Microsoft-Windows-Partition.evtx
Microsoft-Windows-Storage-ATAPort.evtx
Microsoft-Windows-Storage-ClassPnp.evtx
Microsoft-Windows-StorageManagement-Operational.evtx
Microsoft-Windows-StorageSpaces-Driver-Diagnostic.evtx
Microsoft-Windows-StorageSpaces-Driver-Operational.evtx
Microsoft-Windows-StorageSpaces-SpaceManager-Operational.evtx
Microsoft-Windows-Storage-Storport.evtx
Microsoft-Windows-Volume.evtx
Microsoft-Windows-VolumeSnapshot-Driver.evtx
System.evtx

As said earlier this is only a data collection tool which launches other console tools like chkdsk, fsutil, etc., in the background, and doesn’t fix anything. It’s a nice addition to Windows 10 anyway.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.

Leave a Comment