mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-04 14:17:27 +00:00
chore: Update generated dev docs (#4555)
This commit is contained in:
+2
-2
@@ -1827,7 +1827,7 @@
|
|||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/performance-plans/addultperf"
|
"link": "https://winutil.christitus.com/dev/tweaks/performance-plans---not-for-laptops/addultperf"
|
||||||
},
|
},
|
||||||
"WPFRemoveUltPerf": {
|
"WPFRemoveUltPerf": {
|
||||||
"Content": "Ultimate Performance Profile - Disable",
|
"Content": "Ultimate Performance Profile - Disable",
|
||||||
@@ -1835,7 +1835,7 @@
|
|||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/performance-plans/removeultperf"
|
"link": "https://winutil.christitus.com/dev/tweaks/performance-plans---not-for-laptops/removeultperf"
|
||||||
},
|
},
|
||||||
"WPFTweaksDisableExplorerAutoDiscovery": {
|
"WPFTweaksDisableExplorerAutoDiscovery": {
|
||||||
"Content": "File Explorer Automatic Folder Discovery - Disable",
|
"Content": "File Explorer Automatic Folder Discovery - Disable",
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Ultimate Performance Profile - Enable"
|
|
||||||
description: ""
|
|
||||||
---
|
|
||||||
|
|
||||||
```powershell {filename="functions/public/Invoke-WPFUltimatePerformance.ps1",linenos=inline,linenostart=1}
|
|
||||||
function Invoke-WPFUltimatePerformance {
|
|
||||||
param(
|
|
||||||
[switch]$Do
|
|
||||||
)
|
|
||||||
|
|
||||||
if ($Do) {
|
|
||||||
if (-not (powercfg /list | Select-String "ChrisTitus - Ultimate Power Plan")) {
|
|
||||||
if (-not (powercfg /list | Select-String "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c")) {
|
|
||||||
powercfg /restoredefaultschemes
|
|
||||||
if (-not (powercfg /list | Select-String "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c")) {
|
|
||||||
Write-Host "Failed to restore High Performance plan. Default plans do not include high performance. If you are on a laptop, do NOT use High Performance or Ultimate Performance plans." -ForegroundColor Red
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$guid = ((powercfg /duplicatescheme 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c) -split '\s+')[3]
|
|
||||||
powercfg /changename $guid "ChrisTitus - Ultimate Power Plan"
|
|
||||||
powercfg /setacvalueindex $guid SUB_PROCESSOR IDLEDISABLE 1
|
|
||||||
powercfg /setacvalueindex $guid 54533251-82be-4824-96c1-47b60b740d00 4d2b0152-7d5c-498b-88e2-34345392a2c5 1
|
|
||||||
powercfg /setacvalueindex $guid SUB_PROCESSOR PROCTHROTTLEMIN 100
|
|
||||||
powercfg /setactive $guid
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan installed and activated." -ForegroundColor Green
|
|
||||||
} else {
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan is already installed." -ForegroundColor Red
|
|
||||||
return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (powercfg /list | Select-String "ChrisTitus - Ultimate Power Plan") {
|
|
||||||
powercfg /setactive SCHEME_BALANCED
|
|
||||||
powercfg /delete ((powercfg /list | Select-String "ChrisTitus - Ultimate Power Plan").ToString().Split()[3])
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan was removed." -ForegroundColor Red
|
|
||||||
} else {
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan is not installed." -ForegroundColor Yellow
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Ultimate Performance Profile - Disable"
|
|
||||||
description: ""
|
|
||||||
---
|
|
||||||
|
|
||||||
```powershell {filename="functions/public/Invoke-WPFUltimatePerformance.ps1",linenos=inline,linenostart=1}
|
|
||||||
function Invoke-WPFUltimatePerformance {
|
|
||||||
param(
|
|
||||||
[switch]$Do
|
|
||||||
)
|
|
||||||
|
|
||||||
if ($Do) {
|
|
||||||
if (-not (powercfg /list | Select-String "ChrisTitus - Ultimate Power Plan")) {
|
|
||||||
if (-not (powercfg /list | Select-String "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c")) {
|
|
||||||
powercfg /restoredefaultschemes
|
|
||||||
if (-not (powercfg /list | Select-String "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c")) {
|
|
||||||
Write-Host "Failed to restore High Performance plan. Default plans do not include high performance. If you are on a laptop, do NOT use High Performance or Ultimate Performance plans." -ForegroundColor Red
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$guid = ((powercfg /duplicatescheme 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c) -split '\s+')[3]
|
|
||||||
powercfg /changename $guid "ChrisTitus - Ultimate Power Plan"
|
|
||||||
powercfg /setacvalueindex $guid SUB_PROCESSOR IDLEDISABLE 1
|
|
||||||
powercfg /setacvalueindex $guid 54533251-82be-4824-96c1-47b60b740d00 4d2b0152-7d5c-498b-88e2-34345392a2c5 1
|
|
||||||
powercfg /setacvalueindex $guid SUB_PROCESSOR PROCTHROTTLEMIN 100
|
|
||||||
powercfg /setactive $guid
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan installed and activated." -ForegroundColor Green
|
|
||||||
} else {
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan is already installed." -ForegroundColor Red
|
|
||||||
return
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (powercfg /list | Select-String "ChrisTitus - Ultimate Power Plan") {
|
|
||||||
powercfg /setactive SCHEME_BALANCED
|
|
||||||
powercfg /delete ((powercfg /list | Select-String "ChrisTitus - Ultimate Power Plan").ToString().Split()[3])
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan was removed." -ForegroundColor Red
|
|
||||||
} else {
|
|
||||||
Write-Host "ChrisTitus - Ultimate Power Plan plan is not installed." -ForegroundColor Yellow
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user