C:\Users\marbr>where powercfg C:\Windows\System32\powercfg.exe
Here’s a safe and complete PowerShell method to set your Windows system to maximum performance mode.
This works on Windows 10 and Windows 11.
Enable and Select “Ultimate Performance” Power Plan
# Run PowerShell as Administrator before executing this script
try {
# Enable the Ultimate Performance power plan (if not already available)
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
# Set the Ultimate Performance plan as active
powercfg -setactive e9a42b02-d5df-448d-aa00-03f14749eb61
Write-Host "Ultimate Performance mode enabled and activated." -ForegroundColor Green
}
catch {
Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
}Set “High Performance” Plan
# Run PowerShell as Administrator
try {
# Get the High Performance plan GUID
$plan = powercfg -list | Select-String "High performance" | ForEach-Object {
($_ -split '\s+')[3]
}
if ($plan) {
powercfg -setactive $plan
Write-Host "High Performance mode activated." -ForegroundColor Green
}
else {
Write-Host "High Performance plan not found." -ForegroundColor Yellow
}
}
catch {
Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
}
Extra Tweaks for Max Performance
After enabling the plan, you can also:
Disable sleep:
powercfg -change standby-timeout-ac 0
Prevent display from turning off:
powercfg -change monitor-timeout-ac 0