<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>stknohg</author_name>
  <author_url>https://blog.hatena.ne.jp/stknohg/</author_url>
  <blog_title>しばたテックブログ</blog_title>
  <blog_url>https://blog.shibata.tech/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>3年ほど前に blog.shibata.tech というエントリを書いたのですが、その後新たに分かったことや新しいバージョンでの変更も発生したため、内容を更新してリライトしました。 便利なCountプロパティ たとえばコマンドを実行して出力した結果の件数を取得したい場合、 ([コマンド]).Count とするとその件数を取得することができます。 具体例として以下の様にコマンドを実行するとC:\Program Files配下にあるEXEファイルの総数を取得することができます。 # Countプロパティを使うと、評価した結果(System.IO.FileInfo[])の要素数を取得することができま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shibata.tech%2Fentry%2F2018%2F10%2F07%2F172334&quot; title=&quot;PowerShellのCountプロパティについてあれやこれや (2018年10月版) - しばたテックブログ&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-10-07 17:23:34</published>
  <title>PowerShellのCountプロパティについてあれやこれや (2018年10月版)</title>
  <type>rich</type>
  <url>https://blog.shibata.tech/entry/2018/10/07/172334</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
