Peter,
I'm concerned about your comment that it did work in the past.
What exactly are the symptoms of it "not working"? You mean hibernating in the middle of making a system image?
If so, perhaps what is happening is that your S0 Modern standby state is removing power to the disk being used for your Macrium system image.
Perhaps a Bios update has changed this behaviour. You'd have to look around it to see if there is a relevant override.
You could check that disk in Device manager, Disk drives for a Power mgmt. tab but I have not seen them for disks.
Since S0 Modern standby is not a Sleep state & your computer does not Sleep, no special action is required to allow Macrium to avoid Sleep. Applications keep working during S0 Modern standby.
If you are interested in a workaround that avoids entering S0 or Hibernation while it runs then run this batch file on its own or from the backup batch file you mentioned [In which case run it using the Start command so it runs in its own window & does not hold up your main batch file. Your backup batch file would also need to include a TaskKill command at the end to stop it.]
It mimics physical use every 20 seconds of the NumLock key twice in succession [
twice -
so it ends up back in its original state] so your computer happily sits there wide awake and as ready to do your bidding as it is when you are sat there swearing at it.
KeepDisplayOn.bat
Code:
Title Keep display on
Set ThisVBScript="%TEMP%\KeepDisplayOn.vbs"
Echo Set WshShell = WScript.CreateObject("WScript.Shell") > %ThisVBScript%
Echo WshShell.SendKeys "{NUMLOCK}" >> %ThisVBScript%
Echo WshShell.SendKeys "{NUMLOCK}" >> %ThisVBScript%
:ReRunKeepDisplayOn
Call %ThisVBScript%
TimeOut /T 20 /NOBREAK >nulGoTo ReRunKeepDisplayOn
I kill it using this command in a batch file of its own but you'll probably just want to add it to the end of your existing backup batch file.
Code:
taskkill /fi "WINDOWTITLE eq Keep display on"
All the best,
Denis