Quote:

I've had a number of problems where the shutdown fails and the error is something like "computer not ready" or "not in a suitable state".

A very simple example is where the username/password login dialogue is active, but there have been other causes. I imagine that during startup it is pretty likely that the machine will be in various states when Windows will reject shutdown requests because they are potentially dangerous.

You could put the shutdown in a simple loop, and if it errors wait a period (30 seconds?) and then try again. After a 10 or 15 minutes of retries give it up as a bad job.




I'm rebooting after doing a bunch of activity (installing updates) so that isn't the case here. The system is deifnitely stable at that point.

Judging by the KB article from Microsoft, they are fixing this with the next SP. 3? It has one of those notices that a fix is available but you have to call them. I never do that as it's usually a hassle. I have a workaround for now so I think I'll just wait until MS fixes the issue. Once a new shutdown.exe is released (which, since it hooks off of user.exe,ExitWindows I assume Kix's Shutdown and psshutdown.exe would be fixed in the process?) I'll switch to a more native restart mechanism.


Edited by sixdoubleo (2005-12-05 06:33 PM)