Skip to content
Snippets Groups Projects
Commit 3224e802 authored by han44's avatar han44
Browse files

Upload New File

parent 287a925b
No related branches found
No related tags found
No related merge requests found
Try {
$HighPerf = powercfg -l | %{if($_.contains("High performance")) {$_.split()[3]}}
$CurrPlan = $(powercfg -getactivescheme).split()[3]
if ($CurrPlan -ne $HighPerf) {
powercfg -setactive $HighPerf
Write-Output "Done."
}
else {
Write-Output "High performance power plan was already set."
}
} Catch {
Write-Output "Unable to set power plan to high performance"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment