mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-04 14:17:27 +00:00
2582f094ff
* Update Invoke-WPFUltimatePerformance.ps1 * Update Invoke-WPFButton.ps1 * Update Invoke-WPFUltimatePerformance.ps1 * Update KnownIssues.md * Update KnownIssues.md * Update Invoke-WPFUltimatePerformance.ps1 * Update Invoke-WPFUltimatePerformance.ps1 * Update Invoke-WPFUltimatePerformance.ps1 * Update tweaks.json
10 lines
522 B
PowerShell
10 lines
522 B
PowerShell
function Invoke-WPFUltimatePerformance ([switch]$Enable) {
|
|
if ($Enable) {
|
|
powercfg /setactive (powercfg /duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 | Select-String -Pattern '[A-Fa-f0-9-]{36}').Matches.Value
|
|
[System.Windows.MessageBox]::Show("Ultimate Power Plan plan installed and activated.","Success","OK","Information")
|
|
} else {
|
|
powercfg /restoredefaultschemes
|
|
[System.Windows.MessageBox]::Show("Power Plan was reset to defaults.","Success","OK","Information")
|
|
}
|
|
}
|