{"id":40,"date":"2008-04-13T04:32:07","date_gmt":"2008-04-12T19:32:07","guid":{"rendered":"https:\/\/hiro7216.mydns.jp\/blog\/?p=40"},"modified":"2024-01-30T23:36:44","modified_gmt":"2024-01-30T14:36:44","slug":"linux%e3%81%8b%e3%82%89windows%e3%82%92%e5%86%8d%e8%b5%b7%e5%8b%95%e3%82%b7%e3%83%a3%e3%83%83%e3%83%88%e3%83%80%e3%82%a6%e3%83%b3","status":"publish","type":"post","link":"https:\/\/hiro7216.mydns.jp\/blog\/?p=40","title":{"rendered":"Linux\u304b\u3089Windows\u3092\u518d\u8d77\u52d5(\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3)"},"content":{"rendered":"\n<p>WakeOnLan\u306b\u7d9a\u304dLinux\u304b\u3089Windows\u3092\u518d\u8d77\u52d5(\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3)\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u6700\u521d\u306b\u8a66\u3057\u3066\u307f\u305f\u306e\u304csmb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4f7f\u3048\u308brpcclient\u3067\u3059\u3002<\/p>\n\n\n\n<p>rpcclient -U username%password -N -W yourWorkGroup -c &#8216;shutdown -r&#8217; yourPCName<\/p>\n\n\n\n<p>\u65e9\u901f\u5b9f\u884c\u3057\u3066\u307f\u308b\u3002<br>invalid command<\/p>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u304c\u30c0\u30e1\u3060\u3068\u6012\u3089\u308c\u308b\u30fb\u30fb\u30fb<br>\u8272\u3005\u8abf\u3079\u3066\u307f\u305f\u3051\u3069\u89e3\u6c7a\u7b56\u306f\u898b\u3064\u304b\u3089\u305a\u3002<br>\u3069\u3046\u3082\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3046\u307e\u304f\u884c\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ed6\u306b\u65b9\u6cd5\u304c\u7121\u3044\u3082\u306e\u304b\u3068\u8abf\u3079\u3066\u3044\u305f\u3089net\u30b3\u30de\u30f3\u30c9\u3067\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>net rpc shutdown -r -t 30 -S yourPCName &#8211;workgroup=yourWorkGroup -U username%password &#8211;comment=&#8221;comment&#8221;<br>\u2191\u3053\u308c\u306f\u4e00\u884c\u3067\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u5404\u30b3\u30de\u30f3\u30c9\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8aac\u660e\u3067\u3059\u3002<\/p>\n\n\n\n<p>shutdown -r<br>\u3053\u308c\u306f\u518d\u8d77\u52d5\u306e\u547d\u4ee4\u3067\u3059\u3002shutdown\u3068-r\u3092\u53d6\u308c\u3070\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<br>\uff08\u79c1\u306e\u74b0\u5883\u3067\u306f\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066\u3082Windows\u306f\u6b63\u5e38\u306b\u7d42\u4e86\u3059\u308b\u3082\u306e\u306e\u96fb\u6e90\u304c\u5b8c\u5168\u306b\u843d\u3061\u307e\u305b\u3093\u3067\u3057\u305f\u3002\uff09<\/p>\n\n\n\n<p>-t 30<br>\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3059\u308b\u307e\u3067\u306e\u6642\u9593(\u79d2\u6570)\u3067\u3059\u3002<br>\u30b3\u30de\u30f3\u30c9\u304c\u6b63\u5e38\u306b\u53d7\u7406\u3055\u308c\u308b\u3068Windows\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3059\u308b\u4e8b\u3092\u4f1d\u3048\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u73fe\u3057\u6307\u5b9a\u3057\u305f\u79d2\u6570\u306e\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>-S yourPCName<br>\u518d\u8d77\u52d5\u3059\u308bPC\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002-S\u3067\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308bLinux\u5074\u3067\u540d\u524d\u89e3\u6c7a\u3067\u304d\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u3082\u3057IP\u3067PC\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f -I \u30aa\u30d7\u30b7\u30e7\u30f3\u3067IP\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>&#8211;workgroup=yourWorkGroup<br>\u518d\u8d77\u52d5\u3059\u308bPC\u304c\u5c5e\u3057\u3066\u3044\u308b\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u540d\u3067\u3059\u3002<br>\uff08\u3053\u308c\u306f\u306a\u304f\u3066\u3082\u5b9f\u884c\u53ef\u80fd\u304b\u3082\uff09<\/p>\n\n\n\n<p>-U username%password<br>\u518d\u8d77\u52d5\u3059\u308bPC\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u9593\u306b%\u3092\u5165\u308c\u308b\u306e\u3092\u5fd8\u308c\u306a\u3044\u3067\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<p>&#8211;comment=&#8221;comment&#8221;<br>\u30b3\u30de\u30f3\u30c9\u304c\u6b63\u5e38\u306b\u53d7\u7406\u3055\u308c\u308b\u3068Windows\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3059\u308b\u4e8b\u3092\u4f1d\u3048\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u73fe\u3057\u307e\u3059\u3002<br>\u3053\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u30b3\u30e1\u30f3\u30c8\u6b04\u304c\u3042\u308a\u305d\u3053\u306b\u3053\u3053\u3067\u6307\u5b9a\u3057\u305f\u30b3\u30e1\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br>\u3082\u3057\u3082\u8ab0\u304b\u304c\u518d\u8d77\u52d5\u3059\u308b\u30de\u30b7\u30f3\u3092\u64cd\u4f5c\u3057\u3066\u3044\u305f\u5834\u5408\u306b\u30ef\u30fc\u30e0\u306b\u3088\u308b\u518d\u8d77\u52d5\u3068\u9593\u9055\u308f\u308c\u306a\u3044\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u306f\u66f8\u3044\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WakeOnLan\u306b\u7d9a\u304dLinux\u304b\u3089Windows\u3092\u518d\u8d77\u52d5(\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3)\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u307e\u305a\u6700\u521d\u306b\u8a66\u3057\u3066\u307f\u305f\u306e\u304csmb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4f7f\u3048\u308brpcclient\u3067\u3059\u3002 rpcclient -U username% &hellip; <a href=\"https:\/\/hiro7216.mydns.jp\/blog\/?p=40\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Linux\u304b\u3089Windows\u3092\u518d\u8d77\u52d5(\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,287],"tags":[166],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-linkstation","category-nas","tag-linkstation"],"_links":{"self":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":0,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"wp:attachment":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}