Files
winutil/functions/private/Invoke-WinUtilGPU.ps1
T

21 lines
511 B
PowerShell
Raw Normal View History

function Invoke-WinUtilGPU {
+10
2024-03-28 14:50:29 -07:00
$gpuInfo = Get-CimInstance Win32_VideoController
2024-06-28 14:52:25 +00:00
# GPUs to blacklist from using Demanding Theming
$lowPowerGPUs = (
"*NVIDIA GeForce*M*",
"*NVIDIA GeForce*Laptop*",
"*NVIDIA GeForce*GT*",
"*AMD Radeon(TM)*",
"*UHD*"
)
+8
2024-03-21 16:23:24 -07:00
foreach ($gpu in $gpuInfo) {
2024-06-28 14:52:25 +00:00
foreach ($gpuPattern in $lowPowerGPUs){
if ($gpu.Name -like $gpuPattern) {
return $false
}
+8
2024-03-21 16:23:24 -07:00
}
}
2024-06-28 14:52:25 +00:00
return $true
+8
2024-03-21 16:23:24 -07:00
}