LoginSignup
0
1

More than 5 years have passed since last update.

difference > shutdownコマンド > Windows / linux < 自PC / 他PC over the internet

Last updated at Posted at 2016-12-14

通信経路にあるPCをshutdownする場合のコマンドについて調べた。
自PCのshutdownと合わせて記載する。

自PCでのshutdown

Windows

> shutdown -s -t 0

linux

自分がよく使うのは以下。

$ sudo shutdown -h now

他PCからのshutdown

Windows

Remote shutting down computer over WiFi with cmd

設定をしてから以下を実行する。

> shutdown -m \\mypcname -r -c "this pc will shutdown in 60 secs" -t 60

デフォルト設定ではないため、設定変更する場合と、自作shutdownソフトを走らせる場合の利点、欠点は検討を要する。
OSの機能として用意されているというのは1ポイント。

どのバージョンのWindows(7, 8.1, 10?)で有効かは未消化。

linux

sshとsudoの組合せ

$ ssh user@remote_computer sudo poweroff

上記の例ではshutdown -h nowの代わりにpoweroffを使用。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1