Undetectable Humanizer: Lifetime Subscription
Transform AI-Generated Text into Human-Like, High-Ranking Content & Bypass Even the Most Sophisticated AI Detectors
Get 95% Deal

StorDiag.exe: new Windows 10 Storage Diagnostic tool

Martin Brinkmann
Aug 15, 2016
Updated • May 20, 2019
Windows, Windows 10
|
3

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.

Using StorDiag.exe

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.

Step 1: Open an elevated command prompt

administrator command prompt

First thing you need to do is open an elevated command prompt.

  1. Tap on the Windows-key, type cmd.exe, hold down the Ctrl and Shift keys, and hammer on the Return key.
  2. Confirm the UAC prompt that is displayed afterwards.
  3. The elevated command prompt window should open. If it reads Administrator in the title, all is well.

Step 2: The command

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

Step 3: Running storage diagnostics

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.

CDROM.reg
ChkDsk C.txt
ChkDsk O.txt
ChkDsk P.txt
ChkDsk S.txt
ChkDsk T.txt
DiskDrive.reg
FileSystem.reg
HDC.reg
<DIR> LocaleMetaData
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-Storage-Storport.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-Volume.evtx
Microsoft-Windows-VolumeSnapshot-Driver.evtx
perflog.etl
PSLogs.txt
SCSIAdapter.reg
System.evtx
VolMgr.reg
VolSnap.reg
Volume C Corruption.txt
Volume O Corruption.txt
Volume P Corruption.txt
Volume S Corruption.txt
Volume T Corruption.txt
Volume.reg

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.

Summary
StorDiag.exe: new Windows 10 Storage Diagnostic tool
Article Name
StorDiag.exe: new Windows 10 Storage Diagnostic tool
Description
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.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Christian Sirolli said on May 20, 2019 at 8:01 pm
    Reply

    There is now more options available in the current version of Windows 10. This is the current help output:

    StorDiag [-collectEtw] [-out ]
    -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 Specify the output path. If not specified, logs are saved to %TEMP%\StorDiag

    1. Martin Brinkmann said on May 20, 2019 at 8:04 pm
      Reply

      Thank you, I have updated the guide to reflect the change!

  2. anon said on August 15, 2016 at 12:55 pm
    Reply

    Relative paths exist, you know? %UserProfile%\Desktop\StorDiag corresponds to C:\Users\Martin\Desktop\StorDiag, in your case.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.