Update Script.ps1

master
Chris Nutter 2023-11-01 18:20:39 -07:00
parent 4eab65f15f
commit 56641f75e4
1 changed files with 3 additions and 4 deletions

View File

@ -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 {irm https://massgrave.dev/get | iex}"
# Start-Process powershell.exe -ArgumentList "-NoProfile -Command {iwr -useb https://christitus.com/win | 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 -change -standby-timeout-ac 0
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
powercfg /hibernate on
# Set display to turn black after 2 hours powercfg -change -monitor-timeout-ac 30
powercfg -change -monitor-timeout-ac 120