<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sh0_add</author_name>
  <author_url>https://blog.hatena.ne.jp/sh0_add/</author_url>
  <blog_title>定時ラボ</blog_title>
  <blog_url>https://tech-sh0.hatenablog.com/</blog_url>
  <categories>
    <anon>インフラ実務</anon>
  </categories>
  <description>PowerShell 7 を入れていない PC でも動かす .ps1 は Windows PowerShell 5.1 で、自分の PC だけで使う新しいスクリプトは 7.6 で書く、という分け方が実測の結果と合います。 どちらでも動かすなら、.ps1 を UTF-8(BOM あり)で保存すると、日本語が両方でそのまま出ました。 5.1 と 7.6.7 で結果が分かれた項目、分かれなかった項目 項目 5.1 7.6.7 選ぶときに効くこと 実行ファイル 最初から入っている powershell.exe 別に入れる pwsh.exe。Store 版はアプリ実行エイリアス 呼ぶ名前が違う 書き出し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-sh0.hatenablog.com%2Fentry%2F2026%2F10%2F23%2F081608&quot; title=&quot;PowerShell 5.1と7の違い 業務スクリプトで結果が変わる点と選び方 - 定時ラボ&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://cdn-ak.f.st-hatena.com/images/fotolife/s/sh0_add/20261023/20261023022047.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-10-23 08:16:08</published>
  <title>PowerShell 5.1と7の違い 業務スクリプトで結果が変わる点と選び方</title>
  <type>rich</type>
  <url>https://tech-sh0.hatenablog.com/entry/2026/10/23/081608</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
