WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

wntShutDown Error 694


Question:

We are using the wntShutDown to restart a Windows machine but we get the following error:
WIL Extender Error : 694 Error shutting down specified computer
It is only giving this error on Windows 2003.

Here is the content of the wwwbatch.ini file:

[WWWNT34I]
LastError=21 (InitiateSystemShutdown) 

Answer:

Error 21 indicates: The device is not ready. ERROR_NOT_READY

From the InitiateSystemShutdown() documentation in the Win32 Platform SDK:

Windows XP: If the computer is locked and the bForceAppsClosed parameter is FALSE, the last error code is ERROR_MACHINE_LOCKED. If the system is not ready to handle the request, the last error code is ERROR_NOT_READY. The application should wait a short while and retry the call.

Windows Server 2003 is newer than WinXP, so the "Windows XP:" related notes should apply to it as well, since the note calls out behavior that was not present in Win2K & older, but which is present in WinXP ["& newer" is implied].

Of course, with all of that said, there's still a question as to what is causing the ERROR_NOT_READY error code to be returned. If it is a transient condition, then retrying the operation as the documentation suggests would be OK. If the condition lasts for some period of time, then identifying the condition and fixing it will be necessary. It could be a matter of some sort of policy that has been applied, but if that were the case, I would suspect that you'd get an error #5 [access denied].


Article ID:   W17075
File Created: 2007:07:03:14:28:06
Last Updated: 2007:07:03:14:28:06