What is DxDiag.exe and Where is It Located in Windows

☁️
VMORE CLOUDTech Today for a Smarter Tomorrow
Home › Guides › Windows › DirectX › Diagnostics
WINDOWSGUIDEDIRECTXSYSTEM TOOLS

What is DxDiag.exe and Where Is It Located?

DxDiag.exe is the Windows executable behind the DirectX Diagnostic Tool. Learn what it does, where Windows stores it, how to launch it, and how to verify its location from Command Prompt or PowerShell.

Khurram Shahzad
Hybrid Cloud & Virtualization Engineer
•September 30, 2026•7 min read
C:\> dxdiag.exe
DirectX Diagnostic Tool
Windows system diagnostic utility
Executable:
%WINDIR%\System32\dxdiag.exe

The standard Windows location is represented by %WINDIR%\System32\dxdiag.exe. On a typical Windows installation, this resolves to C:\Windows\System32\dxdiag.exe.

Key Takeaways
  • DxDiag.exe is the executable for the DirectX Diagnostic Tool.
  • Microsoft documents the executable path as %windir%\system32\dxdiag.exe.
  • On most default Windows installations, the full path is C:\Windows\System32\dxdiag.exe.
  • You can launch DxDiag by typing dxdiag in Windows Search, Run, Command Prompt, or PowerShell.
  • DxDiag can collect information about DirectX, graphics hardware, display drivers, audio devices and other system components.
  • The tool can save its collected information as a text report for troubleshooting or support.

What is DxDiag.exe?

DxDiag.exe is the Windows executable that launches the DirectX Diagnostic Tool, commonly called DxDiag. Microsoft describes DxDiag as a diagnostic utility that gathers information about the system and installed DirectX components and can perform checks to help determine whether related components are working correctly.

It is particularly useful when troubleshooting games, graphics problems, display-driver issues, audio problems, or when a support technician asks for a system diagnostic report.

Important: DxDiag.exe is a diagnostic utility, not a separate DirectX installer. On modern Windows versions, DirectX components that are part of the operating system are maintained through Windows servicing and Windows Update rather than by downloading a replacement dxdiag.exe from an unofficial website.

Where Is DxDiag.exe Located?

Microsoft documents the executable location as:

WINDOWS SYSTEM PATH
%WINDIR%\System32\dxdiag.exe

On a typical Windows installation where Windows is installed on the C: drive, this becomes:

DEFAULT EXAMPLE
C:\Windows\System32\dxdiag.exe

The %WINDIR% environment variable represents the Windows installation directory. Using the environment-variable form is safer than assuming that Windows is always installed in C:\Windows.

How to Open the DxDiag.exe File Location

Method 1: Use File Explorer

  1. Open File Explorer.
  2. Open the Windows installation drive.
  3. Open the Windows folder.
  4. Open System32.
  5. Find dxdiag.exe.
FILE EXPLORER PATH
C:\Windows\System32\dxdiag.exe

If Windows is installed in another directory, use the actual Windows folder instead of assuming C:\Windows.

Method 2: Use Windows Run

Press Windows + R, type dxdiag, and press Enter. Windows launches the executable without requiring you to browse to the System32 folder.

RUN
dxdiag

Method 3: Use Command Prompt

Open Command Prompt and run:

COMMAND PROMPT
dxdiag

You can also ask Windows to show the executable’s location:

COMMAND PROMPT — LOCATE DXDIAG
where dxdiag

On a normal Windows installation, the result should resolve to the Windows system directory containing dxdiag.exe.

Method 4: Use PowerShell

PowerShell can resolve the command and show the executable path:

POWERSHELL
Get-Command dxdiag.exe

To inspect the standard path directly, use:

POWERSHELL — CHECK STANDARD PATH
Get-Item “$env:windir\System32\dxdiag.exe”

How to Verify That DxDiag.exe Exists

If you want to verify the file without opening the graphical tool, Command Prompt can check the documented path:

VERIFY FILE
if exist “%windir%\System32\dxdiag.exe” (echo DxDiag.exe found) else (echo DxDiag.exe not found)

You can also use a simple directory query:

LIST THE EXECUTABLE
dir “%windir%\System32\dxdiag.exe”

What Information Does DxDiag Collect?

When DxDiag opens, it presents diagnostic information across several tabs. The exact information displayed can vary with Windows version, installed hardware and drivers.

AreaWhat You Can Inspect
SystemWindows system information and the DirectX version reported by DxDiag.
DisplayGraphics adapter information, display details and graphics-driver information.
SoundAudio device and driver information.
InputInformation about connected input devices detected by the tool.
ReportDxDiag can save its collected information with Save All Information… for troubleshooting or support.

DxDiag.exe vs. DirectX

These terms are related, but they are not the same thing:

TermMeaning
DirectXA collection of Windows components and APIs used by software, especially games, to work with graphics, audio and other hardware capabilities.
DxDiagThe DirectX Diagnostic Tool that gathers and presents diagnostic information.
DxDiag.exeThe executable file used to launch the DirectX Diagnostic Tool.

Is DxDiag.exe a Safe Windows File?

The Microsoft-documented system executable is located at %windir%\System32\dxdiag.exe. If you find a file named dxdiag.exe somewhere unexpected, do not assume that it is the Windows diagnostic utility simply because it has the same filename.

Security tip: Do not download a replacement dxdiag.exe from random websites. If the expected Windows executable is missing or damaged, use Windows repair and servicing tools or Microsoft support guidance rather than replacing a system file with an unverified copy.

Why Can’t I Find DxDiag.exe?

If searching for dxdiag.exe in File Explorer does not immediately show the file, first try launching dxdiag from Run, Command Prompt or Windows Search. Then verify the documented location using the commands above.

Also check that you are looking under the actual Windows installation directory represented by %windir%. The standard location is not necessarily C:\Windows on systems where Windows was installed to a different drive or directory.

Can You Run DxDiag From Command Prompt?

Yes. The simplest command is:

DOS-STYLE COMMAND
dxdiag.exe

For troubleshooting, DxDiag can also save a text report. A practical command is:

SAVE A TEXT REPORT
dxdiag /t “%USERPROFILE%\Desktop\DxDiag.txt”

This creates a text report on the current user’s desktop when the command completes. The report can be useful when a technician or support forum asks for DxDiag information.

DxDiag.exe Quick Reference

TaskCommand / Location
Open DxDiagdxdiag
Executabledxdiag.exe
Microsoft-documented path%windir%\System32\dxdiag.exe
Typical full pathC:\Windows\System32\dxdiag.exe
Find command locationwhere dxdiag
PowerShell lookupGet-Command dxdiag.exe
Check standard pathdir "%windir%\System32\dxdiag.exe"
Save text reportdxdiag /t "%USERPROFILE%\Desktop\DxDiag.txt"

Bottom Line

DxDiag.exe is the executable for Windows’ DirectX Diagnostic Tool. Microsoft documents its system location as %windir%\System32\dxdiag.exe, which normally resolves to C:\Windows\System32\dxdiag.exe. You do not need to browse to that folder to use the tool: typing dxdiag in Windows Search, Run, Command Prompt or PowerShell is usually the quickest way to launch it.

For technical troubleshooting, knowing the executable path is useful because it lets you verify that you are launching the Windows system tool rather than an unrelated copy, and it provides a reliable starting point when diagnosing DirectX, graphics-driver or audio issues.

Sources & References

Microsoft Learn — Microsoft.DirectX.Diagnostics
Documents the DxDiag executable as %windir%\system32\dxdiag.exe and describes the diagnostic API.
Microsoft Support — Which version of DirectX is on your PC?
Explains how to launch DxDiag, inspect DirectX information and save diagnostic results.
Microsoft Support — How to install the latest version of DirectX
Provides Microsoft guidance for checking DirectX with DxDiag on Windows.
Microsoft Learn — File System Redirector
Provides Windows documentation on System32 and architecture-related file-system behavior.
DxDiagDxDiag.exeDirectX Diagnostic ToolWindows 11Windows 10System32Windows DiagnosticsGPU Troubleshooting
KS
Khurram Shahzad — Hybrid Cloud & Virtualization Engineer

Hybrid Cloud & Virtualization Engineer specializing in VMware, Azure, AWS, Windows Server, Microsoft 365, Linux, networking, backup & disaster recovery. I share practical guides, technical projects and insights into modern IT infrastructure through VMoreCloud.

VMORE CLOUD — Tech Today for a Smarter Tomorrow
© 2026 VMoreCloud. All rights reserved.
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO