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 diff --git a/winutil.ps1 b/winutil.ps1 index 541775ae..ab23d85d 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -1673,7 +1673,7 @@ function Invoke-WinUtilFeatureInstall { } } function Invoke-GPUCheck { - $gpuInfo = Get-WmiObject Win32_VideoController + $gpuInfo = Get-CimInstance Win32_VideoController foreach ($gpu in $gpuInfo) { $gpuName = $gpu.Name