<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>merrywhite</author_name>
  <author_url>https://blog.hatena.ne.jp/merrywhite/</author_url>
  <blog_title>CAFE BREAK</blog_title>
  <blog_url>https://cafebreak.hatenablog.com/</blog_url>
  <categories>
    <anon>Windows</anon>
  </categories>
  <description>Windows Serverの構築をしていると頻繁に再起動やシャットダウンをすることがあると思います。そこで便利なのが、OS標準のコマンドをバッチファイルにしてデスクトップなどに置いておければ、すぐにOSの再起動、停止を実行することができます。 構築中は、バッチファイルを作成して、作業を効率よくしていますが、まず、OS標準で利用できるコマンドはこちらになります。 ●OSの停止(shutdwon)# shutdown -s -t 0 ●OSの再起動# shutdown -r -t 0 また、バッチファイルにする場合には注意なのですが、上記のままだと実行に失敗しますので、以下のように作成します。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcafebreak.hatenablog.com%2Fentry%2F2020%2F03%2F28%2F000000&quot; title=&quot;Windows10、2016のコマンド、バッチでOSをshutdown、再起動する方法 - CAFE BREAK&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://thumbnail.image.rakuten.co.jp/@0_mall/skyudirect/cabinet/07469749/x20.jpg?_ex=128x128</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-28 00:00:00</published>
  <title>Windows10、2016のコマンド、バッチでOSをshutdown、再起動する方法</title>
  <type>rich</type>
  <url>https://cafebreak.hatenablog.com/entry/2020/03/28/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
