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)*",
|
|
|
|
|
"*UHD*"
|
|
|
|
|
)
|
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
|
|
|
|
|
}
|
2024-03-21 16:23:24 -07:00
|
|
|
}
|
|
|
|
|
}
|
2024-06-28 14:52:25 +00:00
|
|
|
return $true
|
2024-03-21 16:23:24 -07:00
|
|
|
}
|