My office computer automatically restarts (group policy). I would like to have an app that simply detects that an automatic restart is going to happen, and perform an action (send an email to me). A possible path I found was ARR
(which I found by this question: Detect whether a Windows reboot was due to Windows updates)
However, this is in C, C++, and I'm really just a noob with rudimentary VB.net knowledge. A possible path would be to use GetProcessByName if the automatic update restart is performed by a specific process. Thus my questions are:
- Is there a specific process that's started for a Windows Automatic Restart?
- Is there a better way to do this?