How to Open DXDiag from Command Prompt

To open DXDiag from Command Prompt, open CMD (press Windows + R, type cmd, press Enter), then type dxdiag and press Enter. DXDiag opens in a separate window. You can also type dxdiag /whql:off to open it faster by skipping driver signature checks.

Basic Command to Open DXDiag

The simplest way to open DXDiag from Command Prompt is with a single command:

Open DXDiag (standard):

dxdiag

DXDiag opens in a new window while Command Prompt stays open. You do not need to navigate to any specific directory — the dxdiag command works from any folder location.

Open DXDiag Faster — Skip WHQL Check

By default, DXDiag checks Microsoft's database to verify driver certification. This can add a few seconds. To skip this check and open DXDiag faster, use the /whql:off switch:

Open DXDiag without WHQL check (faster):

dxdiag /whql:off

The information shown is the same — the only thing skipped is the driver certification lookup.

Save DXDiag Report Directly from Command Prompt

DXDiag supports a command-line switch to save its output to a text file without opening the GUI window:

Save DXDiag report to a file (replace with your actual path):

dxdiag /t C:\Users\%USERNAME%\Desktop\DxDiag.txt

The /t switch followed by a file path saves the complete DXDiag report to that location and exits. No window opens — the file is created silently. This is useful for automated diagnostics or help desk scripts.

Open Command Prompt on Windows 10 and 11

There are several ways to open Command Prompt:

  • Press Windows + R, type cmd, press Enter.
  • Press Windows + X and select Terminal or Command Prompt.
  • Search for cmd in the Windows search bar and click the result.
  • To open as Administrator: search for cmd, right-click the result, and select Run as administrator.

All DXDiag Command Switches

SwitchWhat It Does
dxdiagOpens DXDiag normally with WHQL checking enabled
dxdiag /whql:offOpens DXDiag without WHQL driver signature check (faster)
dxdiag /t filename.txtSaves report to a text file without opening the GUI
dxdiag /x filename.xmlSaves report as an XML file instead of plain text
dxdiag /64bitForces the 64-bit version of DXDiag on 64-bit Windows

Frequently Asked Questions

Related guides: