https://stackoverflow.com/questions/61397665/batch-file-to-get-all-available-graphics-...les-and-output
I previously managed to do this thanks to above link that uses the now depreceated WMIC.
Any ideas on how to do using powershell?
Thanks.
The nearest I could find searching was this ...
But how to put result into a batch file variable ?
https://lindevs.com/methods-to-get-available-gpu-devices-on-windows
C:\> $gpu = (Get-WmiObject Win32_VideoController).Name
C:\> $gpu
Intel(R) UHD Graphics 620
C:\> $gpu -like "Intel"
False
C:\> $gpu -like "*Intel*"
True
C:\> $gpu -like "Intel*"
True
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
batch to get fpsnum and fpsden value in a variable
By marcorocchini in forum Newbie / General discussionsReplies: 0Last Post: 6th Aug 2022, 12:02 -
How to get media info using powershell?
By iKron in forum Newbie / General discussionsReplies: 1Last Post: 6th May 2022, 08:53 -
how to delete file in powershell only if exist
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 21st Mar 2022, 23:25 -
Batch remux mkv to mp4 with Windows PowerShell
By [ss]vegeta in forum Newbie / General discussionsReplies: 0Last Post: 22nd Dec 2020, 14:48 -
Graphic Cards - Compared and Contrasted
By eager to learn in forum EditingReplies: 1Last Post: 14th Nov 2020, 17:50