Saturday, January 11, 2020

Atrophied shutdown.exe feature: the /unexpected switch

While disassembling shutdown.exe for reasons, I noticed special handling of the /i (interactive switch). That was expected based on the documentation's note that it must be the first switch, but after those checks there was also special handling of an /unexpected switch. Supplying it, at least on my machine, always results in this message:

Failed to open UI.

I can't find any documentation of an "unexpected" switch and it's not clear to me what it would do.

1 comment:

  1. Perhaps it is related to the Shutdown Event Tracker that pops up after login after an unexpected shutdown.

    ReplyDelete