2024-03-30 11:46:29 -05:00
|
|
|
function Invoke-WinUtilGPU {
|
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
|
|
|
)
|
2024-03-21 16:23:24 -07:00
|
|
|
|
|
|
|
|
foreach ($gpu in $gpuInfo) {
|
2024-08-06 23:35:17 +03:00
|
|
|
foreach ($gpuPattern in $lowPowerGPUs) {
|
2024-06-28 14:52:25 +00:00
|
|
|
if ($gpu.Name -like $gpuPattern) {
|
|
|
|
|
return $false
|
|
|
|
|
}
|
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
|
|
|
}
|