StorDiag.exe Storage Diagnostic Tool in Windows 10

Windows 10 Anniversary Update introduces a new command line tool StorDiag.exe or Storage Diagnostic Tool that allows System Administrators to collect and analyze storage-related data, that can help them troubleshoot Hard Disk and storage diagnostic issues. By running a single command, the tool can collect all storage and file system related data and diagnostic logs and output them to a folder.

Storage Diagnostic Tool – StorDiag.exe

StorDiag.exe Storage Diagnostic Tool

To use the StorDiag.exe tool, open an elevated command prompt, type the following and hit Enter:

StorDiag.exe /?

The arguments that are available are:

  • -collectEtw : Collect a 30-second long ETW trace if run from an elevated session
  • -checkFSConsistency : Checks for the consistency of the NTFS file system
  • -out <PATH> : Specify the output path. If not specified, logs are saved to %TEMP%\StorDiag

The syntax to be used is:

Advt

^

StorDiag [-collectEtw] [-out <PATH>]

So if you want to collect a ETW (Event Tracing for Windows) trace and check file system consistency, generate diagnostics logs and save them to your Desktop, run the following command:

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

Once you start the task, you will see it carrying out several tasks, including running of ChkDsk, FSUtil, and so on. So instead of running tests individually, it will run several tests automatically, thereby saving IT Pros and System Administrators time.

After the task is over, it will output the log files in a folder and save it on your desktop:

C:\Users\ACK\Desktop\StorDiag

StorDiag.exe logs

You can choose any location to save the diagnostic files.

Hope you find the new tool introduced in Windows 10 v1607 useful.

Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP Awardee in Windows & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.