feat: set power plan to high performance

Uses built-in GUID 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
to switch from balanced to high performance.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Administrator 2026-03-16 09:37:34 +01:00
parent b8833f2897
commit 9ae23b9dde

View File

@ -474,6 +474,11 @@ Set-ItemProperty -Path $wuRegPath -Name "NoAutoUpdate" -Value 1 -Type DWord -For
Set-ItemProperty -Path $wuRegPath -Name "AUOptions" -Value 1 -Type DWord -Force Set-ItemProperty -Path $wuRegPath -Name "AUOptions" -Value 1 -Type DWord -Force
Write-Host " Windows Update deaktiviert!" -ForegroundColor Green Write-Host " Windows Update deaktiviert!" -ForegroundColor Green
# Energiesparplan auf Hoechstleistung setzen
Write-Host " Energiesparplan auf Hoechstleistung..." -ForegroundColor Gray
powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
Write-Host " Hoechstleistung aktiviert!" -ForegroundColor Green
# Explorer neu starten damit alle Einstellungen sofort wirksam werden # Explorer neu starten damit alle Einstellungen sofort wirksam werden
Write-Host " Explorer wird neu gestartet..." -ForegroundColor Gray Write-Host " Explorer wird neu gestartet..." -ForegroundColor Gray
Stop-Process -Name "explorer" -Force -ErrorAction SilentlyContinue Stop-Process -Name "explorer" -Force -ErrorAction SilentlyContinue