From 23ded22b36a8a8b1622a1d80a4e3c4892a70892d Mon Sep 17 00:00:00 2001 From: Rux Date: Thu, 28 Mar 2024 14:34:54 -0700 Subject: [PATCH] Update Invoke-WinUtilGPU.ps1 (#1753) - This should be a proper fix to Invoke-WinUtilGPU.ps1. Tested in Win10 and Win11. --- functions/private/Invoke-WinUtilGPU.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/private/Invoke-WinUtilGPU.ps1 b/functions/private/Invoke-WinUtilGPU.ps1 index 23493922..b7eac175 100644 --- a/functions/private/Invoke-WinUtilGPU.ps1 +++ b/functions/private/Invoke-WinUtilGPU.ps1 @@ -1,5 +1,5 @@ function Invoke-GPUCheck { - $gpuInfo = Get-WmiObject Win32_VideoController + $gpuInfo = Get-CimInstance Win32_VideoController foreach ($gpu in $gpuInfo) { $gpuName = $gpu.Name