Sometimes I put my laptop to sleep (suspend to RAM, not hibernate), but could happen that I don’t reactivate it for days: in such case, despite the fact that the sleep state consume little percentage of battery, I would however avoid any consumption of the battery (which will exponentially grow after days of suspension). I know that I can set “Hibernate after” in the advanced power settings, but in this case, I don’t want/need to find open documents and running applications when I reactivate my laptop. So I was searching for a way to replace the "Hibernate after" with “Shutdown after” (in my case, eg, after 12 hours after sleep). Well, here on SuperUser I found the suggestion of another user, which suggested (by creating a task in the Task Scheduler) to trigger the Shutdown after an amount of time after that the system goes to sleep, but does’nt works at all for me: https://superuser.com/a/934949/386950
To summarize: the suggestion is to create a task in the Task Scheduler, which is triggered after X minutes that the laptop has gone to sleep, then by using the following action in the Actions tab:
shutdown -s, but as I’ve said, this task doesn’t work at all for me. I also tried to enable the “Wake the computer to run this task” option, but this task doesn’t work at all, however.
I am aware of the fact that there are available some software utilities like “Shutdown Timer” https://www.makeuseof.com/tag/automatically-turn-computer-shutdown-timer-windows/ but I would avoid to rely on third-party applications: i’d like to rely on Windows’s abilities.
So: what I have to change, check or activate, to achieve my need?