Update Invoke-WinUtilGPU.ps1 (#1753)

- This should be a proper fix to Invoke-WinUtilGPU.ps1. Tested in Win10 and Win11.
This commit is contained in:
Rux 2024-03-28 14:34:54 -07:00 committed by GitHub
parent 4ef4dbf8c1
commit 23ded22b36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
function Invoke-GPUCheck {
$gpuInfo = Get-WmiObject Win32_VideoController
$gpuInfo = Get-CimInstance Win32_VideoController
foreach ($gpu in $gpuInfo) {
$gpuName = $gpu.Name