The machine in question is an intel-based windows laptop with a defective SSD that works for the most part but accessing specific addresses causes it to not respond any more until the whole machine reboots.
I am trying to write an automated tool to recover it's data, and as part of that tool, in case a read operation does not respond within a set time, I want it to force-reboot the machine and then continue from where it stopped + single sector.
I have tried to force-reboot with the following command:
shutdown -r -t 0 -f
But it just stuck at Windows "Restarting ..." screen. I have to use the physical button to make it actually reboot. So I'm searching for a way, whether it be a command line tool or a Win32 API, to hard-reboot automatically without the need of using the physical button.
/p
Turns off the local computer only (not a remote computer)—with no time-out period or warning.
Doesn't say if it will still reboot or just shutdown.