Turn on the Ability for Applications to Prevent Sleep Transitions (Plugged In)

Enables applications and services to prevent the system from sleeping.

If you enable this policy setting, an application or service may prevent the system from sleeping (Hybrid Sleep, Stand By, or Hibernate).

If you disable this policy setting or do not configure it, users can see and change this setting.

Supported on: At least Windows Vista

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Microsoft\Power\PowerSettings\B7A27025-E569-46c2-A504-2B96CAD225A1
Value NameACSettingIndex
Value TypeREG_DWORD
Enabled Value1
Disabled Value0

power.admx

Administrative Templates (Computers)

Administrative Templates (Users)