salt.states.win_powercfg

This module allows you to control the power settings of a windows minion via powercfg.

New in version Beryllium.

monitor:
    powercfg.set_timeout:
        - value: 30
        - power: dc
salt.states.win_powercfg.set_timeout(name, value, power='ac')

Set the sleep timeouts of specific items such as disk, monitor.

CLI Example:

monitor:
    powercfg.set_timeout:
        - value: 30
        - power: dc

disk:
    powercfg.set_timeout:
        - value: 12
        - power: ac
name
The setting to change, can be one of the following: monitor, disk, standby, hibernate
timeout
The amount of time in minutes before the item will timeout i.e the monitor
power
Should we set the value for AC or DC (battery)? Valid options ac,dc.