From 56641f75e4396eafc873903dda2f50fad0a46429 Mon Sep 17 00:00:00 2001 From: Chris Nutter Date: Wed, 1 Nov 2023 18:20:39 -0700 Subject: [PATCH] Update Script.ps1 --- Script.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Script.ps1 b/Script.ps1 index ae79d08..55ba8e1 100644 --- a/Script.ps1 +++ b/Script.ps1 @@ -39,9 +39,8 @@ Start-Process -FilePath $ScreenConnectPath -ArgumentList "/silent" -Wait # Start-Process powershell.exe -ArgumentList "-NoProfile -Command {irm https://massgrave.dev/get | iex}" # Start-Process powershell.exe -ArgumentList "-NoProfile -Command {iwr -useb https://christitus.com/win | iex}" -# Disable sleep and enable high performance mode +# Disable sleep and enable high performance mode, enable hibernation, and display black after 30 minutes powercfg -change -standby-timeout-ac 0 powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c - -# Set display to turn black after 2 hours -powercfg -change -monitor-timeout-ac 120 +powercfg /hibernate on +powercfg -change -monitor-timeout-ac 30