mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-17 10:17:44 -06:00
Compare commits
No commits in common. "3fe482b9439a5cc0b11637ead81fe980985a61fe" and "9233d934d37b1e1b265c0dcd4c91f4c4a8bfe39b" have entirely different histories.
3fe482b943
...
9233d934d3
@ -2,20 +2,23 @@ function Invoke-WinUtilGPU {
|
||||
$gpuInfo = Get-CimInstance Win32_VideoController
|
||||
|
||||
# GPUs to blacklist from using Demanding Theming
|
||||
$lowPowerGPUs = (
|
||||
"*NVIDIA GeForce*M*",
|
||||
"*NVIDIA GeForce*Laptop*",
|
||||
"*NVIDIA GeForce*GT*",
|
||||
"*AMD Radeon(TM)*",
|
||||
"*UHD*"
|
||||
)
|
||||
|
||||
foreach ($gpu in $gpuInfo) {
|
||||
foreach ($gpuPattern in $lowPowerGPUs){
|
||||
if ($gpu.Name -like $gpuPattern) {
|
||||
$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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# 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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user