Windowsãµã¼ãããªã¢ã¼ãããå¼·å¶çã«OSãªãã¼ããã
id:rx7ããLinuxのサーバをリモートから強制的にOSリブートするããæ稿ãã¦ããã®ã§ãWindows Terminal Serviceã¸ã®ãªã¢ã¼ããã¹ã¯ãããæ¥ç¶ãåºæ¥ãªããªã£ãã¨ããåæã®ãã¨ãWindowsãµã¼ãçã§ãªã¢ã¼ãããå¼·å¶çã«OSãªãã¼ãããæ¹æ³ãç´¹ä»ãã¾ãã
éå»ã«Terminal Serviceãã¼ã¢ã³ããã³ã°ãã¦ãã¾ããå°ã£ããã¨ãå®éã«ãã£ãã®ã§ããã®æã®å¯¾å¿ããã¼ãæ¸ãã¦ããã¾ãã
â»Windowsãµã¼ãã®è¨å®(ã»ãã¥ãªãã£ã»ããªã·ã¼)ã«ãã£ã¦ã¯ãªãã¼ãã§ããªãããããã¾ãããã¡ãªã¿ã«ä»¥ä¸ã§è§£èª¬ããæ¹æ³ã¯ãWindowsã¯ã©ã¤ã¢ã³ãããã®ã¿å¯è½ãªããã§ããUbuntuã§è©¦ãã¦ã¿ãããããã®ã§ãããããã«é¢ãã¦ã¯ç¡çã§ããã®ã§ã
ä»åã®ãªãã¼ãããæ¹æ³ã«ã¯ãåä½ä¸ã®ããã°ã©ã é(ãããã¯ã¼ã¯ãéãã¦ãå¯)ã§ãã¼ã¿äº¤æããããã®ä»çµã¿ã§ããIPC(InterProcess Communication)ãå©ç¨ãã¾ãã
ä»®ã«ãWindowsãµã¼ãã®IPã¢ãã¬ã¹ã192.168.1.10ã¨ãã¾ãã
以ä¸ã®æé ã¯ãDOS/Vããã³ããã§ã³ãã³ããçºè¡ãããã®ã¨ãã¾ãã
(1) Windowsã¯ã©ã¤ã¢ã³ãããWindowsãµã¼ãã«å¯¾ãã¦pingãéããã¨ã確èª
$ ping 192.168.1.10
(2) IPCã§èªè¨¼ãéã(ããã§ã¯administratorã§èªè¨¼)
$ net use \\192.168.1.10\ipc$ /user:administrator *
(3) ãªãã¼ãã³ãã³ãå®è¡
$ shutdown -r -m \\192.168.1.10
ããã§Windowsãµã¼ããåèµ·åããã¯ãã§ãã
試ãã¦ã¿ãéã«ã¯ããããããåèµ·åãã¦ãå½±é¿ã®ç¡ããµã¼ãã§ã試ããã ããã