IT Toolkit: Set Power Options

Kaseya Automation Team
Kaseya Automation Team Member, Kaseya Certified CHOCOLATE MILK
edited January 2022 in Solutions

Product Name: IT Toolkit: Set Power Options

Description : The following Agent Procedure intended to provide an example how to automate the management of power settings.
Note: the settings made using a GPO take precedence over settings made using the Agent procedure or manually.

Instructions :

See attached zip for instructions

Comments

  • Jorge A. Del Rio
    edited May 2021

    Hello!

    If I want my machines to never go into hibernate, what should I put? Some insane amount of minutes? Or is there a parameter for "never".

    Cheers!

  • Lonnie Thibodeaux
    Lonnie Thibodeaux Member CHOCOLATE MILK
    edited May 2021

    Jorge,

    I am not using this particular procedure but I set my power options as follows:

    // Set plan to High Performance
    powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

    // AC - Disable Sleep, DC - Sleep after 20 minutes (1200 seconds)
    powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 0
    powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 1200

    // AC - Disable Hibernate, DC - Hibernate 3 Hours
    powercfg -change -hibernate-timeout-ac 0
    powercfg -change -hibernate-timeout-dc 10800

    This all works for me.
    Lonnie

  • samuel@finkeltron.com
    [email protected] Member CHOCOLATE MILK

    I missed VSA module that had a whole power settings suite. Kaseya ripped it out after that big hack. Is it coming back?