<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryoichi0102</author_name>
  <author_url>https://blog.hatena.ne.jp/ryoichi0102/</author_url>
  <blog_title>メンチカツには醤油でしょ!!</blog_title>
  <blog_url>https://ryoichi0102.hatenablog.com/</blog_url>
  <categories>
    <anon>Jenkins</anon>
    <anon>CI</anon>
    <anon>Windows</anon>
  </categories>
  <description>サービスを操作するには net か sc コマンド Windowsサービスの開始・終了をコマンドで行う場合にはnetコマンドかscコマンドを使います。これらの違いとしてそれぞれ下記のような違いあります。 ・netコマンドは同期的・scコマンドは非同期的 つまり、netコマンドは実行終了まで待つが、scコマンドは待たない。 ・netコマンドはリモートのサービスは操作できない・scコマンドはリモートOK scでリモートのサービスを再起動(restart)したい Jenkinsなど、別マシンからWindowsサービスを操作したいことがあると思います。前述のとおり、リモートのサービスの場合scコマンド…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryoichi0102.hatenablog.com%2Fentry%2F2018%2F09%2F10%2F124618&quot; title=&quot;Windows cmdでsc.exeのstopとstartを組み合わせてサービスのrestart - メンチカツには醤油でしょ!!&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-10 12:46:18</published>
  <title>Windows cmdでsc.exeのstopとstartを組み合わせてサービスのrestart</title>
  <type>rich</type>
  <url>https://ryoichi0102.hatenablog.com/entry/2018/09/10/124618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
