mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-17 10:17:44 -06:00
Compare commits
2 Commits
cf6b4bdf3a
...
9233d934d3
Author | SHA1 | Date | |
---|---|---|---|
|
9233d934d3 | ||
|
a75020f211 |
@ -1,46 +1,24 @@
|
|||||||
function Invoke-WinUtilGPU {
|
function Invoke-WinUtilGPU {
|
||||||
$gpuInfo = Get-CimInstance Win32_VideoController
|
$gpuInfo = Get-CimInstance Win32_VideoController
|
||||||
|
|
||||||
|
# GPUs to blacklist from using Demanding Theming
|
||||||
foreach ($gpu in $gpuInfo) {
|
foreach ($gpu in $gpuInfo) {
|
||||||
$gpuName = $gpu.Name
|
$gpuName = $gpu.Name
|
||||||
if ($gpuName -like "*NVIDIA GeForce*M*") {
|
if ($gpuName -like "*NVIDIA GeForce*M*" -OR
|
||||||
return $false # NVIDIA M series GPU found
|
$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) {
|
foreach ($gpu in $gpuInfo) {
|
||||||
$gpuName = $gpu.Name
|
$gpuName = $gpu.Name
|
||||||
if ($gpuName -like "*NVIDIA GeForce*Laptop*") {
|
if ($gpuName -like "*NVIDIA*" -OR
|
||||||
return $false # NVIDIA Laptop series GPU found
|
$gpuName -like "*AMD Radeon RX*") {
|
||||||
}
|
return $true
|
||||||
}
|
|
||||||
foreach ($gpu in $gpuInfo) {
|
|
||||||
$gpuName = $gpu.Name
|
|
||||||
if ($gpuName -like "*NVIDIA GeForce*GT*") {
|
|
||||||
return $false # NVIDIA GT series GPU found
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach ($gpu in $gpuInfo) {
|
|
||||||
$gpuName = $gpu.Name
|
|
||||||
if ($gpuName -like "*NVIDIA*") {
|
|
||||||
return $true # NVIDIA GPU found
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach ($gpu in $gpuInfo) {
|
|
||||||
$gpuName = $gpu.Name
|
|
||||||
if ($gpuName -like "*AMD Radeon RX*") {
|
|
||||||
return $true # AMD GPU Found
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach ($gpu in $gpuInfo) {
|
|
||||||
$gpuName = $gpu.Name
|
|
||||||
if ($gpuName -like "*UHD*") {
|
|
||||||
return $false # Intel Intergrated GPU Found
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach ($gpu in $gpuInfo) {
|
|
||||||
$gpuName = $gpu.Name
|
|
||||||
if ($gpuName -like "*AMD Radeon(TM)*") {
|
|
||||||
return $false # AMD Intergrated GPU Found
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user