コマンドラインからシャットダウン/再起動
Windows7 にリモートデスクトップで繋いでいると、スタートメニューに再起動が出てこない。
コマンドラインからやる方法を調べたのでメモ。
すぐ再起動
Linux でいう shutdown -r now
shutdown /r /t 0
すぐシャットダウン
Linux でいう shutdown -h now
shutdown /s /t 0
リモートで再起動
SysinternalSuite を使うとリモートでもできる。
c:\Apps\SysinternalSuite>psshutdown.exe -u pen \\quro -r -f