Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rebooting the NT server with a Batch file...
Message
Information générale
Forum:
Windows
Catégorie:
Dépannage
Divers
Thread ID:
00334177
Message ID:
00334764
Vues:
34
>This is what I expected. Why is it that the command SHUTDOWN do not list when I type at the DOS prompt "Help ?"?
>
>
>>SHUTDOWN is available if the batch is running in an adequately privileged context.
>>
>>You could write a small routine to do the same thing, but again the privileges of the exection context are an issue.

It may be that you have not intalled it; as usual, the detail on it is on the NT FAQ (see the link in my sig)

Q. How can I configure the machine to reboot at a certain time?

A. There is a command line utility shipped with the resource kit called SHUTDOWN.EXE that can be used to reboot the local machine

shutdown /l /r /y /c

Where /l tells it to shutdown the local machine, /r to reboot, /c to close all programs and /y to avoid having to say yes to questions. You can then combine this with the AT command (don't forget you need the Schedule service to be running (Start - Settings - Control Panel - Services) to use the AT command) to make this happen at a certain time:

AT
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform