Task scheduler & wake up from sleep mode problem

%3CLINGO-SUB%20id%3D%22lingo-sub-2028667%22%20slang%3D%22en-US%22%3ETask%20scheduler%20%26amp%3B%20wake%20up%20from%20sleep%20mode%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2028667%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3Ei%20have%20a%20machine%20with%20windows%20server%202016.%3C%2FP%3E%3CP%3EI'm%20trying%20to%20configure%20the%20system%20to%20send%20it%20in%20sleep%20mode%20everyday%20at%2020%3A00%2C%20and%20to%20resume%20it%20from%20sleep%20at%207%3A00%20o'clock%20of%20the%20next%20day.%3C%2FP%3E%3CP%3EIn%20order%20to%20reach%20this%2C%20i've%20enabled%20the%20sleep%20mode%20via%20Powrcfg%2C%20and%20after%20i've%20created%20two%20simple%20batch%20file%20that%20do%20requested%20operations.%3C%2FP%3E%3CP%3EDespite%20the%20scheduled%20task%20that%20set%20the%20system%20in%20sleep%20mode%20works%20well%2C%20the%20other%20task%20that%20resume%20it%20seems%20not%20to%20be%20working%20correctly.%3C%2FP%3E%3CP%3EI%20set%20it%20to%20be%20executed%20independently%20of%20the%20user%20logging%20and%20with%20elevated%20privileges%2C%20and%20i%20also%20set%20the%20flag%20on%20%22wake%20up%20system%20to%20execute%20the%20task%22%2C%20but%20it%20isn't%20work.%20The%20system%20won't%20power%20up.%3C%2FP%3E%3CP%3EI%20noticed%20in%20system%20event%20logger%20that%20system%20clock%2C%20when%20in%20sleep%20mode%2C%20isn't%20refreshed%20until%20the%20next%20wake%20up%20(in%20fact%20the%20first%20event%20logged%20after%20wake%20is%3C%2FP%3E%3CP%3Esystem%20time%20changed%20from%20%E2%80%8E2020%E2%80%8E-%E2%80%8E12%E2%80%8E-%E2%80%8E30T19%3A00%3A18.083452900Z%20to%20%E2%80%8E2021%E2%80%8E-%E2%80%8E01%E2%80%8E-%E2%80%8E04T08%3A00%3A30.500000000Z.%3C%2FP%3E%3CP%3EReason%3A%20system%20time%20syncronized%20with%20hardware%20clock.)%3C%2FP%3E%3CP%3ECan%20be%20this%20the%20reason%20of%20the%20problem%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20general%20is%20there%20a%20way%20to%20make%20it%20working%3F%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

i have a machine with windows server 2016.

I'm trying to configure the system to send it in sleep mode everyday at 20:00, and to resume it from sleep at 7:00 o'clock of the next day.

In order to reach this, i've enabled the sleep mode via Powrcfg, and after i've created two simple batch file that do requested operations.

Despite the scheduled task that set the system in sleep mode works well, the other task that resume it seems not to be working correctly.

I set it to be executed independently of the user logging and with elevated privileges, and i also set the flag on "wake up system to execute the task", but it isn't work. The system won't power up.

I noticed in system event logger that system clock, when in sleep mode, isn't refreshed until the next wake up (in fact the first event logged after wake is

system time changed from ‎2020‎-‎12‎-‎30T19:00:18.083452900Z to ‎2021‎-‎01‎-‎04T08:00:30.500000000Z.

Reason: system time syncronized with hardware clock.)

Can be this the reason of the problem?

 

In general is there a way to make it working?

Thank you.

0 Replies