mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 09:50:36 -06:00
Compare commits
5 Commits
9233d934d3
...
3fe482b943
Author | SHA1 | Date | |
---|---|---|---|
|
3fe482b943 | ||
|
b52aa945b7 | ||
|
8b3d2274d3 | ||
|
e91937c9d9 | ||
|
84fe65001b |
@ -2,23 +2,20 @@ function Invoke-WinUtilGPU {
|
||||
$gpuInfo = Get-CimInstance Win32_VideoController
|
||||
|
||||
# GPUs to blacklist from using Demanding Theming
|
||||
foreach ($gpu in $gpuInfo) {
|
||||
$gpuName = $gpu.Name
|
||||
if ($gpuName -like "*NVIDIA GeForce*M*" -OR
|
||||
$gpuName -like "*NVIDIA GeForce*Laptop*" -OR
|
||||
$gpuName -like "*NVIDIA GeForce*GT*" -OR
|
||||
$gpuName -like "*AMD Radeon(TM)*" -OR
|
||||
$gpuName -like "*UHD*") {
|
||||
return $false
|
||||
}
|
||||
}
|
||||
$lowPowerGPUs = (
|
||||
"*NVIDIA GeForce*M*",
|
||||
"*NVIDIA GeForce*Laptop*",
|
||||
"*NVIDIA GeForce*GT*",
|
||||
"*AMD Radeon(TM)*",
|
||||
"*UHD*"
|
||||
)
|
||||
|
||||
# GPUs to whitelist on using Demanding Theming
|
||||
foreach ($gpu in $gpuInfo) {
|
||||
$gpuName = $gpu.Name
|
||||
if ($gpuName -like "*NVIDIA*" -OR
|
||||
$gpuName -like "*AMD Radeon RX*") {
|
||||
return $true
|
||||
foreach ($gpuPattern in $lowPowerGPUs){
|
||||
if ($gpu.Name -like $gpuPattern) {
|
||||
return $false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $true
|
||||
}
|
Loading…
Reference in New Issue
Block a user