Looking to identify what flag causes Windows to show “Unexpected Shutdown”.
Not the problem, but the actual file, registry key, or whatever marker that tells the booting OS, “Hey, you shutdown unexpected. And it wasn’t planned.”
I searched for this once before and to my understanding it has changed between version of Windows. In Windows 2008, it’s was a set of 2 files, but I don’t remember where they are located or their names.