Computer Hardware

Cmd Command For Graphics Card

To check your graphics card from Command Prompt, type dxdiag and press Enter, then open the Display tab in the DirectX Diagnostic Tool. For text output, you can launch a PowerShell query from CMD. These tools identify your GPU and driver; other commands can help.

Which licences fit your PC setup?

Prices are an AUD snapshot, not a live quote. Confirm variant and total on the listing.

Check your graphics card with dxdiag

The simplest starting point is dxdiag, a Windows diagnostic tool that opens a graphical window. You can launch it from Command Prompt without installing another utility.

  1. Search for cmd in the Start menu and open Command Prompt.
  2. Type dxdiag and press Enter.
  3. Open the Display tab and note the graphics card name, manufacturer and driver version.
  4. If there are additional Display or Render tabs, check those too. A computer can have both integrated and dedicated graphics.
  5. Select Save All Information if you need a report for troubleshooting or technical support.

Read any messages in the Notes area, but do not treat a clear report as proof that the hardware is fault-free. An intermittent crash may need further investigation. Microsoft explains how to collect and share a report in its DirectX Diagnostic Tool guidance.

Display the GPU name and driver version as text

If you want information directly in the terminal, enter this command in CMD:

powershell -NoProfile -Command "Get-CimInstance Win32_VideoController | Select-Object Name, DriverVersion, DriverDate | Format-List"

This starts Windows PowerShell, queries the video controllers recognised by Windows and lists their names, driver versions and driver dates. Multiple results can be normal on a system with more than one graphics adapter.

Older guides often use wmic path win32_VideoController get name,driverversion. WMIC is deprecated and has been removed from current Windows 11 releases, so use the PowerShell approach rather than trying to restore it. Microsoft documents the change in its WMIC guidance.

The reported name is a useful starting point when checking specifications. If you are identifying an older board, compare the result and the physical card label with a model-specific reference such as the Gigabyte D33006 graphics card specifications. Confirm the exact model before selecting a driver.

Inspect a missing or malfunctioning adapter

Enter devmgmt.msc in CMD to open Device Manager. Expand Display adapters, open the relevant device's Properties and read its device status. Record any error code before changing drivers.

If a device seems to be missing, select Action, then Scan for hardware changes. View, then Show hidden devices can reveal entries that are normally hidden; displaying an old entry does not reconnect hardware or make a game detect it. Avoid deleting greyed-out entries simply because they appear.

You can also enter msinfo32 to open System Information. Components, then Display provides another view of the graphics hardware, while System Summary helps identify the computer and processor. Keep CPU and GPU identification separate: a Socket rPGA 989 CPU list concerns processor compatibility and cannot determine which graphics driver your computer needs.

Install a graphics driver from Command Prompt

For most users, the computer or GPU manufacturer's driver installer is the easiest option. Choose a package that supports your exact hardware and Windows installation. For a laptop, check the laptop manufacturer's support page for a suitable package.

If you specifically need a command-line installation and have an extracted driver package containing INF files, Windows includes PnPUtil. It installs local driver packages; it does not search the manufacturer's website or download an update.

  1. Download the correct driver from the manufacturer and extract it according to the package instructions. An EXE installer cannot simply be substituted for an INF file.
  2. Search for Command Prompt, right-click it and choose Run as administrator.
  3. Enter pnputil /add-driver "C:\Drivers\Graphics\*.inf" /subdirs /install, replacing the example folder with the folder containing only your intended graphics driver package.
  4. Read the result, restart if requested, then check the driver version again with dxdiag or the PowerShell query.

The /subdirs option includes subfolders, and /install applies suitable packages to matching devices. PnPUtil does not force a lower-ranked driver over the driver Windows prefers. See Microsoft's PnPUtil command reference if the package is added but the active driver does not change.

Monitor a supported NVIDIA GPU

On a supported NVIDIA system with the relevant driver installed, enter nvidia-smi in CMD. It can report the GPU name, driver version, temperature and usage information, depending on the hardware and driver.

For a focused reading, use:

nvidia-smi --query-gpu=name,driver_version,temperature.gpu,utilization.gpu --format=csv

These fields are described in NVIDIA's GPU query examples. A reading is a snapshot, so compare idle behaviour with the workload that causes the problem rather than judging performance from one value.

If CMD reports that the command is not recognised, the utility may be missing or outside the command search path. That message alone does not establish a hardware fault. NVIDIA commands do not apply to AMD or Intel graphics; use the appropriate manufacturer's monitoring software instead.

Avoid commands that do not address the problem

  • gpupdate /force refreshes Group Policy. It does not update graphics drivers.
  • sfc /scannow checks protected Windows system files. It is not a dedicated GPU test or a general repair tool for third-party graphics drivers.
  • chkdsk checks a file system and, with appropriate options, disk problems. It does not test graphics memory or optimise the GPU.
  • Firmware flashing is not routine graphics optimisation. Do not use NVFlash instructions as a substitute for supported clock-tuning software.
  • Disabling or removing the adapter driving your screen can interrupt the display. Save your work and establish a recovery method before making those changes.

For broader hardware troubleshooting, use the computer hardware guides to investigate the component implicated by your symptoms.

Start by running dxdiag and saving the report. Record the GPU name, driver version and exact symptom, then use those details to choose the matching driver package or the next diagnostic check.

Other editions for separate workloads

Other editions for separate workloads; prices in AUD, confirm the total on the listing.

How to check this worked

  1. Open Settings, System, Activation and confirm the edition shown.
  2. Enter the key and run activation; expect a green tick within a minute.
  3. Reboot and re-check activation survives the restart.

FAQ

What else should you know before buying?

What do I need before starting?
Read the requirements and confirm the edition first; the steps assume the machine is compatible.
How do I know the licence is genuine?
Activate on Microsoft's servers and check Settings, System, Activation. A working activation is the test.
Is this a subscription?
Keys sold here are one-time lifetime licences. Microsoft 365 plans are billed by Microsoft instead.
What if the key fails?
Email hi@ms.codes with the order number and a screenshot. Replacement or refund applies within 30 days.

Check who prepared and reviewed this guide

Written by
MS.Codes editorial
Reviewed by
Support team

Last verified: (source review; see test status above).

Recent Post