I have a unique industrial application where I do not want the Windows CE device to ever power off (powering off cuts the wireless connection, resulting in a looooong delay re-establishing a link to the server). The issue: a hard reset removes the "never turn off" setting of the device, allowing it to sleep. Avoiding a hard reset is not an option, as the devices sometimes require them.
What is the registry key that controls this? The idea is, with a registry file, the device will merge the key into the system at boot, negating the need for manually setting this.
To save time, the answer was in a comment below, so I've re-pasted it here for reference:
The registry entry is: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts] "BattSuspendTimeout" = dword:00000000