This module allows you to control the power settings of a windows minion via powercfg.
New in version 2015.8.0.
# Set timeout to 30 minutes on battery power
monitor:
powercfg.set_timeout:
- value: 30
- power: dc
salt.states.win_powercfg.
set_timeout
(name, value, power='ac', scheme=None)¶Set the sleep timeouts of specific items such as disk, monitor, etc.
Parameters: |
|
---|
CLI Example:
# Set monitor timeout to 30 minutes on Battery
monitor:
powercfg.set_timeout:
- value: 30
- power: dc
# Set disk timeout to 10 minutes on AC Power
disk:
powercfg.set_timeout:
- value: 10
- power: ac