mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
Compile Winutil
This commit is contained in:
parent
5b369250b6
commit
b646b139b8
36
winutil.ps1
36
winutil.ps1
@ -1835,32 +1835,24 @@ function Invoke-WinUtilFeatureInstall {
|
|||||||
}
|
}
|
||||||
function Invoke-WinUtilGPU {
|
function Invoke-WinUtilGPU {
|
||||||
$gpuInfo = Get-CimInstance Win32_VideoController
|
$gpuInfo = Get-CimInstance Win32_VideoController
|
||||||
|
|
||||||
foreach ($gpu in $gpuInfo) {
|
# GPUs to blacklist from using Demanding Theming
|
||||||
$gpuName = $gpu.Name
|
$lowPowerGPUs = (
|
||||||
if ($gpuName -like "*NVIDIA*") {
|
"*NVIDIA GeForce*M*",
|
||||||
return $true # NVIDIA GPU found
|
"*NVIDIA GeForce*Laptop*",
|
||||||
}
|
"*NVIDIA GeForce*GT*",
|
||||||
}
|
"*AMD Radeon(TM)*",
|
||||||
|
"*UHD*"
|
||||||
|
)
|
||||||
|
|
||||||
foreach ($gpu in $gpuInfo) {
|
foreach ($gpu in $gpuInfo) {
|
||||||
$gpuName = $gpu.Name
|
foreach ($gpuPattern in $lowPowerGPUs){
|
||||||
if ($gpuName -like "*AMD Radeon RX*") {
|
if ($gpu.Name -like $gpuPattern) {
|
||||||
return $true # AMD GPU Found
|
return $false
|
||||||
}
|
}
|
||||||
}
|
|
||||||
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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return $true
|
||||||
}
|
}
|
||||||
Function Invoke-WinUtilMouseAcceleration {
|
Function Invoke-WinUtilMouseAcceleration {
|
||||||
<#
|
<#
|
||||||
|
Loading…
Reference in New Issue
Block a user