diff --git a/functions/private/Invoke-WinUtilGPU.ps1 b/functions/private/Invoke-WinUtilGPU.ps1 index e5436f82..38f5594d 100644 --- a/functions/private/Invoke-WinUtilGPU.ps1 +++ b/functions/private/Invoke-WinUtilGPU.ps1 @@ -1,13 +1,30 @@ function Invoke-WinUtilGPU { $gpuInfo = Get-CimInstance Win32_VideoController - + + foreach ($gpu in $gpuInfo) { + $gpuName = $gpu.Name + if ($gpuName -like "*NVIDIA GeForce*M*") { + return $false # NVIDIA M series GPU found + } + } + foreach ($gpu in $gpuInfo) { + $gpuName = $gpu.Name + if ($gpuName -like "*NVIDIA GeForce*Laptop*") { + return $false # NVIDIA Laptop series GPU found + } + } + foreach ($gpu in $gpuInfo) { + $gpuName = $gpu.Name + if ($gpuName -like "*NVIDIA GeForce*GT*") { + return $false # NVIDIA GT series GPU found + } + } foreach ($gpu in $gpuInfo) { $gpuName = $gpu.Name if ($gpuName -like "*NVIDIA*") { return $true # NVIDIA GPU found } } - foreach ($gpu in $gpuInfo) { $gpuName = $gpu.Name if ($gpuName -like "*AMD Radeon RX*") {