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

24 lines
548 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)*",
2024-08-29 04:11:00 +03:00
"*Intel(R) HD Graphics*",
2024-06-28 14:52:25 +00:00
"*UHD*"
2024-08-29 04:11:00 +03:00
2024-06-28 14:52:25 +00:00
)
+8
2024-03-21 16:23:24 -07:00
foreach ($gpu in $gpuInfo) {
foreach ($gpuPattern in $lowPowerGPUs) {
2024-06-28 14:52:25 +00:00
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
2024-09-10 04:05:10 +03:00
}