salt.states.win_powercfg

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

New in version 2015.8.0.

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.

Docs for previous releases are available on readthedocs.org.

Latest Salt release: 2016.11.0

Previous topic

salt.states.win_path

Next topic

salt.states.win_servermanager