Server 2003

Fermé
marionks Messages postés 256 Date d'inscription lundi 14 janvier 2008 Statut Membre Dernière intervention 7 juillet 2019 - 27 févr. 2008 à 10:27
ptitgus Messages postés 45 Date d'inscription jeudi 8 novembre 2007 Statut Membre Dernière intervention 28 mars 2008 - 28 févr. 2008 à 08:50
Bonjour, en stage on me demande la commande shutdown pour aréter un windows server 2003, j'ai trouver des scripts mais je voudrais savoir en fait s'il faut que je lui rende un script ou si ya une commande ?
merci de m'en dire plus
A voir également:

3 réponses

ptitgus Messages postés 45 Date d'inscription jeudi 8 novembre 2007 Statut Membre Dernière intervention 28 mars 2008 23
27 févr. 2008 à 10:40
Bonjour Marionks,

voici les options de la commande shutdown :

shutdown /?
Usage: shutdown | /l | /s | /r | /a | /p | /h | /e /f
\\computerxxx[/d [p:]xx:yy "comment"]

No args Display help. This is the same as typing /?
/? Display help. This is the same as not typing any options
/i Display the graphical user interface (GUI).
This must be the first option
/l Log off. This cannot be used with /m or /d option
/s Shutdown the computer
/r Shutdown and restart the computer
/a Abort a system shutdown.
This can only be used during the time-out period
/p Turn off the local computer with no time-out or warning.
This can only be used with /d option
/h Hibernate the local computer.
This can only be used with the /f option
/e Document the reason for an unexpected shutdown of a computer
/m \\computer Specify the target computer
/t xxx Set time-out period before shutdown to xxx seconds.
The valid range is 0-600, with a default of 30
/c "comment" Comment on the reason for the restart or shutdown.
Maximum of 127 characters allowed
/f Force running applications to close without forewarning users
/d [p:]xx:yy Provide the reason for the restart or shutdown
p indicates that the restart or shutdown is planned
xx is the major reason number (positive integer less than 256)
yy is the minor reason number (positive integer less than 65536)

Après, tout dépend de ce qu'on te demande de faire avec cette commande, sois un peu plus précis quand à ta demande si tu souhaites plus de détails ou précisions :)

Bonne journée

Ptitgus
0
marionks Messages postés 256 Date d'inscription lundi 14 janvier 2008 Statut Membre Dernière intervention 7 juillet 2019 8
27 févr. 2008 à 10:43
bien mon maitre de stage ma juste dit checrhe moi les commandes shutdowns j'en sais pas plus, dsl de ne pas avoir de présicion
J'ai pas compris tu tape ca ou ses commandes ?
0
ptitgus Messages postés 45 Date d'inscription jeudi 8 novembre 2007 Statut Membre Dernière intervention 28 mars 2008 23
28 févr. 2008 à 08:50
Cette liste de fonctions est issue d'une commande cmd (DOS).

Le shutdown est une commande qui est intégrée sous windows via une petite interfaçe,

cette dernière, tu peux la voir quand tu redémarres un serveur sous Windows 2003 Server.

En effet, quand tu le redémarres, une fenêtre apparait et te demande d'entrer une raison du reboot,

cette fenêtre fait appel à la fonction Shutdown.

Donc, en lançant une commande DOS, tu tapes shutdown /? et tu auras l'aide de la commande Shutdown.

Donc, en effet tu peux la scripter, mais egalement envoyer cette commande à disctance à un serveur 2003, ou même

sur une machine en windows XP.

Voilà pour un peu plus d'informations.

Si tu as besoin de précisions, essayes de voir quels sont les points précis qui te sont demandés.

Bonne journée

Ptitgus
0