Commit b0c999e5 authored by han44's avatar han44
Browse files

Add an option to run High Performance Power Plan

parent bd10047e
......@@ -67,7 +67,10 @@ param(
# Skip running Windows Updates
# Run the High Performance Power Plan script as a post-action
function log($msg) {
......@@ -299,6 +302,12 @@ if($TeamsMsg -ne 'false') {
powershell.exe -executionpolicy bypass -file "$scripts\post-to-teams.ps1" -message "$TeamsMsg (_$addinfo1, *$addinfo2*_)" -title $TeamsName -webhook $TeamsWebhook > $teamslog 2>&1
if($HighPower) {
$powerplanlog = "$engritLogPath\set-high-performance-power-plan.log"
log "Log will go to $($powerplanlog)..."
powershell.exe -executionpolicy bypass -file "$scripts\set-high-performance-power-plan.ps1" > $powerplanlog 2>&1
# forces immediate computer reboot
log "Rebooting..."
shutdown /r /t 0
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment