def _set_powercfg_value(scheme, sub_group, setting_guid, power, value):
 if (scheme is None):
  scheme = _get_current_scheme()
 cmd = 'powercfg /set{0}valueindex {1} {2} {3} {4}'.format(power, scheme, sub_group, setting_guid, value)
 return __salt__['cmd.run'](cmd, python_shell=False)

def _set_powercfg_value ( scheme , sub_group , setting_guid , power , value ) : if ( scheme is None ) : scheme = _get_current_scheme ( ) cmd = 'powercfg /set{0}valueindex {1} {2} {3} {4}' . format ( power , scheme , sub_group , setting_guid , value ) return __salt__ [ 'cmd.run' ] ( cmd , python_shell = False )
sets the value of a setting with a given power to the given scheme .