Sinon essaie avec des petits programmes sans installation comme PowerOFF.
bolivier
J'ai essayé shutdown -s -f -m \\ip.de.ton.pc -t 0 mais ça marche toujours pas
com21
ça dépend comment est configuré le poste.
Mais sinon, oui ;)
laxou
pour utiliser shutdown sur un pc distant faut pas donner un nom d user et le pass associé au compte ? ca serait etonnant ca !
ZeBix
Salut,
à mon avis tu tapes mal la commande, s'il te met la liste de paramètres (je pense que le paramètre "t" est obligatoire et doit se trouver après le computer name - pas sûr).
Essaye : shutdown -s -f -m \\ip.de.ton.pc -t 0
si le pc cible n'est pas protégé par un firewall ça doit marcher.
*edit* et comme disent les msg ci-dessous, tu dois être connecté avec un compte qui a un accès absolu au PC ciblé (perso je lance mes shutdowns dans un domaine W2K3 depuis un compte admin donc je me soucie pas de ça hehe)
-?
Displays the supported options.
computer
Perform the command on the remote computer or computers specified. If you omit the computer name the command runs on the local system, and if you specify a wildcard (\\*), the command runs on all computers in the current domain.
@file
Run the command on each computer listed in the text file specified.
-u
Specifies optional user name for login to remote computer.
-p
Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
-a
Aborts a shutdown (only possible while a countdown is in progress)
-c
Allow the shutdown to be aborted by the interactive user
-d
Suspend the computer
-e
Shutdown reason code.
Specify 'u' for user reason codes and 'p' for planned shutdown reason codes.
xx is the major reason code (must be less than 256)
yy is the minor reason code (must be less than 65536)
-f
Forces all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data
-h
Hibernate the computer
-k
Poweroff the computer (reboot if poweroff is not supported)
-l
Lock the computer
-m
This option lets you specify a message to display to logged-on users when a shutdown countdown commences
-n
Specifies timeout in seconds connecting to remote computers
-o
Logoff the console user
-r
Reboot after shutdown
-s
Shutdown without poweroff
-t
Specifies the countdown in seconds until the shutdown (default: 20 seconds) or the time of shutdown (in 24 hour notation)
-v
Display message for the specified number of seconds before the shutdown. If you omit this parameter the shutdown notification dialog displays and specifying a value of 0 results in no dialog.
chailloug
t'as essayé avec le -f ? et en mettant le nom de machine et pas l'ip ?
com21
Ton PC2 est équipé d'un firewall ou non ?
bolivier
Slt !
J'ai 3 PC en réseaux local
Je souhaite éteindre le PC n°2 par le poste principale ( le mien ).
J'ai essayer dans cmd "Shutdown -m\\IP du PC" mais ça marche pas
Ya t'il autre chose à taper ?
Et aussi, qu'est ce qu'il faut taper pour éteindre le PC 2 et 3 en mème temps ?