Business desktop computers - leave on 24/7 or shut down at night

Reminded of why I always try to listen and ask open ended questions. I went in there armed with my talking points about why the machines should be left on but never considered this one: one user said she was worried about the screen, no screen saver.
 
Reminded of why I always try to listen and ask open ended questions. I went in there armed with my talking points about why the machines should be left on but never considered this one: one user said she was worried about the screen, no screen saver.

And that is why I wrote this:

Repair and Set High Performance Power Profile.ps1

Code:
Start-Process -FilePath 'powercfg.exe' -ArgumentList '/setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -monitor-timeout-ac 15'   
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -disk-timeout-ac 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -standby-timeout-ac 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -hibernate-timeout-ac 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -monitor-timeout-dc 10'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -disk-timeout-dc 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -standby-timeout-dc 20'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -hibernate-timeout-dc 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 1'
REG ADD 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' /v InactivityTimeoutSecs /t REG_DWORD /d 900 /f

It resets the default values to the monitor timeout, disk timeout, standby, and hibernate values for both the on mains and on battery variants of the high power power profile built into windows. It also imposes a high inactivity timer, then sets the system to use the high power profile.

So whenever I have a machine powering off... I set my RMM to run the above when it sees it. Problems go away.

This script and the script I use for non-domain / non-inTune machines to enforce 1am automatic updates get run all the time.
 
Back
Top