Get the video card model via command line in Windows

Solution 1:

wmic path win32_VideoController get name 

does the job concisely from commmand line. Thanks to Vlastimil Ovčáčík's answer above but not sure why its so verbose.

Solution 2:

Run from batch:

@echo off
for /F "tokens=* skip=1" %%n in ('WMIC path Win32_VideoController get Name ^| findstr "."') do set GPU_NAME=%%n
echo %GPU_NAME%