I'm trying to give valid shutdown codes using shutdown.exe on a Windows 2003 Server for shutting down because of an environment issue (Major 6, Minor 12 according to the help)
i'm using the following command:
shutdown.exe /s /m \\server1 /t 15 /d 6:12 /c "UPS failure"
Now when I look in the event log, I get the following entry:
The process winlogon.exe has initiated the power off of computer server1 on behalf of user SERVER1\Administrator for the following reason: No title for this reason could be found
Reason Code: 0x406000c
Shutdown Type: power off
Comment: UPS failure
Any idea how I can get the reason to display Power Failure: Environment, as the documentation states? It appears that the Reason code adds an additional 0x04, but I have no idea where that comes from.
Any suggestions welcome :)