c# – Programmatically change the wake-up timer in power management

Question:

At remote branches there are computers (XP, 7, 10), the Internet is terrible there. They must be turned on periodically to pump data. The problem is they all have their wake-up timer disabled. The question is how to enable it for everyone. I looked through group policies, so the wake-up timers cannot be changed there. I looked through the registry when changing the timer there every time a new line appears in the form of a hash. And there is no point in changing them. So the question is whether it is possible to somehow turn on the timer through the program (better in c #).

I have domain administrator rights, so it won't be a problem to distribute through group policies. And there on the spot there is someone to reboot them.

Answer:

Found the answer: run cmd under admin and write there

powercfg /SETACVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 1
Scroll to Top
AllEscort