mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-15 07:05:51 -06:00
5b369250b6
* Compile Winutil * Update Invoke-WinUtilGPU.ps1 * Re-Formate 'Invoke-WinUtilGPU.ps1' Private Function to be Shorter * Refactor @blueswills changes * Change Date to allow for easy merge --------- Co-authored-by: Marterich <Marterich@users.noreply.github.com> Co-authored-by: Mr.k <mineshtine28546271@gmail.com> Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
21 lines
511 B
PowerShell
21 lines
511 B
PowerShell
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) {
|
|
return $false
|
|
}
|
|
}
|
|
}
|
|
return $true
|
|
} |