From 9ae23b9dde5b50ff9eb70222f5537eff1086f074 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 16 Mar 2026 09:37:34 +0100 Subject: [PATCH] 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) --- VServerSetup.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/VServerSetup.ps1 b/VServerSetup.ps1 index 392cc99..4358336 100644 --- a/VServerSetup.ps1 +++ b/VServerSetup.ps1 @@ -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 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 Write-Host " Explorer wird neu gestartet..." -ForegroundColor Gray Stop-Process -Name "explorer" -Force -ErrorAction SilentlyContinue