This module allows you to control the power settings of a windows minion via powercfg.
New in version Beryllium.
salt '*' powercfg.set_monitor_timeout 0 power=dc
salt '*' powercfg.set_disk_timeout 120 power=ac
salt.modules.win_powercfg.
get_disk_timeout
()¶Get the current disk timeout of the current scheme
CLI Example:
salt '*' powercfg.get_disk_timeout
salt.modules.win_powercfg.
get_hibernate_timeout
()¶Get the current hibernate timeout of the current scheme
CLI Example:
salt '*' powercfg.get_hibernate_timeout
salt.modules.win_powercfg.
get_monitor_timeout
()¶Get the current monitor timeout of the current scheme
CLI Example:
salt '*' powercfg.get_monitor_timeout
salt.modules.win_powercfg.
get_standby_timeout
()¶Get the current standby timeout of the current scheme
CLI Example:
salt '*' powercfg.get_standby_timeout
salt.modules.win_powercfg.
set_disk_timeout
(timeout, power='ac')¶Set the disk timeout in minutes for the current power scheme
CLI Example:
salt '*' powercfg.set_disk_timeout 30 power=dc
salt.modules.win_powercfg.
set_hibernate_timeout
(timeout, power='ac')¶Set the hibernate timeout in minutes for the current power scheme
CLI Example:
salt '*' powercfg.set_hibernate_timeout 30 power=pc
salt.modules.win_powercfg.
set_monitor_timeout
(timeout, power='ac')¶Set the monitor timeout in minutes for the current power scheme
CLI Example:
salt '*' powercfg.set_monitor_timeout 30 power=ac
salt.modules.win_powercfg.
set_standby_timeout
(timeout, power='ac')¶Set the standby timeout in minutes for the current power scheme
CLI Example:
salt '*' powercfg.set_standby_timeout 30 power=dc