mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 14:01:31 -06:00
c1009c3d7c
* Update documentation for 'Invoke-Preprocessing' Script Tool
* Improve Compile Script a bit Deduplicating a lot of un-needed pre-fixes - Improve implementation for 'Invoke-Preprocessing' Script Tool
* Fix RegEx in 'Invoke-Preprocessing' Script Tool
* Result of Preprocessing
* Update Replace Regex for Code Formatting in 'Invoke-Preprocessing' Script Tool
* Result of Preprocessing
* Update Exclude Files List for Preprocessing in 'Compile.ps1' Script
* Remove Extra Whitespace in some place for 'Invoke-Preprocessing.ps1' Script Tool
* Simplified and Improved the Exclude List Validation Step in 'Invoke-Preprocessing.ps1' Script Tool
* Restore 'workingdir' variable when using '-Run' Parameter with 'Compile.ps1' Script
* Revert "Update Exclude Files List for Preprocessing in 'Compile.ps1' Script"
This reverts commit 674ab0308b
.
* Result of Preprocessing
24 lines
548 B
PowerShell
24 lines
548 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)*",
|
|
"*Intel(R) HD Graphics*",
|
|
"*UHD*"
|
|
|
|
)
|
|
|
|
foreach ($gpu in $gpuInfo) {
|
|
foreach ($gpuPattern in $lowPowerGPUs) {
|
|
if ($gpu.Name -like $gpuPattern) {
|
|
return $false
|
|
}
|
|
}
|
|
}
|
|
return $true
|
|
}
|