{"id":11453,"date":"2025-03-16T00:33:29","date_gmt":"2025-03-15T15:33:29","guid":{"rendered":"https:\/\/extan.jp\/?p=11453"},"modified":"2025-03-16T00:33:29","modified_gmt":"2025-03-15T15:33:29","slug":"powershell%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e3%82%92%e7%bd%ae%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%ef%bc%81%e8%a4%87%e6%95%b0%e4%b8%80%e6%8b%ac%e7%bd%ae%e6%8f%9b%e3%82%82%ef%bc%81","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=11453","title":{"rendered":"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u4e00\u62ec\u7f6e\u63db\u3082\uff01"},"content":{"rendered":"<p data-pm-slice=\"1 1 []\">PowerShell\u3092\u4f7f\u3063\u3066\u3001\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7f6e\u63db\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>\u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\n<ul data-spread=\"false\">\n<li>\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7c21\u5358\u306b\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044<\/li>\n<li>\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3057\u305f\u3044<\/li>\n<li>\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3057\u305f\u3044<\/li>\n<\/ul>\n<\/div>\n<p>\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b<\/p>\n<div class=\"rdinfo\">\n<ul data-spread=\"false\">\n<li>PowerShell\u306e\u57fa\u672c\u7684\u306a\u7f6e\u63db\u65b9\u6cd5<\/li>\n<li>\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_66_1 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\">\u3082\u304f\u3058<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=11453\/#%E6%96%87%E5%AD%97%E5%88%97%E3%81%AE%E7%BD%AE%E6%8F%9B_%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\" title=\"\u6587\u5b57\u5217\u306e\u7f6e\u63db \u5b8c\u6210\u30a4\u30e1\u30fc\u30b8\">\u6587\u5b57\u5217\u306e\u7f6e\u63db \u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=11453\/#PowerShell%E3%81%A7%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E7%BD%AE%E6%8F%9B%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" title=\"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\">PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=11453\/#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E6%96%87%E5%AD%97%E5%88%97%E7%BD%AE%E6%8F%9B_-replace_%E6%BC%94%E7%AE%97%E5%AD%90\" title=\"\u57fa\u672c\u7684\u306a\u6587\u5b57\u5217\u7f6e\u63db (-replace \u6f14\u7b97\u5b50)\">\u57fa\u672c\u7684\u306a\u6587\u5b57\u5217\u7f6e\u63db (-replace \u6f14\u7b97\u5b50)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=11453\/#Replace_%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" title=\"Replace() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\">Replace() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=11453\/#%E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E7%BD%AE%E6%8F%9B\" title=\"\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u305f\u7f6e\u63db\">\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u305f\u7f6e\u63db<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=11453\/#%E8%A4%87%E6%95%B0%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E4%B8%80%E6%8B%AC%E3%81%A7%E7%BD%AE%E6%8F%9B\" title=\"\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\">\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=11453\/#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%86%85%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E7%BD%AE%E6%8F%9B%E3%81%99%E3%82%8B\" title=\"\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\">\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=11453\/#%E8%A4%87%E6%95%B0%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B\" title=\"\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u7f6e\u63db\">\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u7f6e\u63db<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/extan.jp\/?p=11453\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" title=\"\u3055\u3044\u3054\u306b\">\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E6%96%87%E5%AD%97%E5%88%97%E3%81%AE%E7%BD%AE%E6%8F%9B_%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\"><\/span>\u6587\u5b57\u5217\u306e\u7f6e\u63db \u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PowerShell\u306e <code>-replace<\/code> \u6f14\u7b97\u5b50\u3084 <code>Replace()<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u6587\u5b57\u5217\u306e\u90e8\u5206\u7f6e\u63db\u304c\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n<div class=\"c_box intitle pink_box\"><div class=\"box_title\"><span>POINT<\/span><\/div>\n<ul data-spread=\"false\">\n<li><code>&quot;Hello World&quot;<\/code> \u3092 <code>&quot;Hello PowerShell&quot;<\/code> \u306b\u7f6e\u63db<\/li>\n<li>\u8907\u6570\u306e\u5358\u8a9e\uff08\u4f8b: &#8220;foo&#8221; \u3068 &#8220;bar&#8221;\uff09\u3092\u4e00\u62ec\u7f6e\u63db<\/li>\n<li>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u3092\u7f6e\u63db<\/li>\n<\/ul>\n<\/div>\n\u305d\u308c\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"PowerShell%E3%81%A7%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E7%BD%AE%E6%8F%9B%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E6%96%87%E5%AD%97%E5%88%97%E7%BD%AE%E6%8F%9B_-replace_%E6%BC%94%E7%AE%97%E5%AD%90\"><\/span>\u57fa\u672c\u7684\u306a\u6587\u5b57\u5217\u7f6e\u63db (<code>-replace<\/code> \u6f14\u7b97\u5b50)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>\u69cb\u6587:<\/strong><\/p>\n<pre><code>$\u6587\u5b57\u5217 -replace &quot;\u691c\u7d22\u6587\u5b57\u5217&quot;, &quot;\u7f6e\u63db\u5f8c\u306e\u6587\u5b57\u5217&quot;<\/code><\/pre>\n<p><strong>\u5165\u529b\u4f8b:<\/strong><\/p>\n<pre><code>$original = &quot;Hello World&quot;\n$replaced = $original -replace &quot;World&quot;, &quot;PowerShell&quot;\nWrite-Output $replaced  # \u51fa\u529b: Hello PowerShell<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Replace_%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span><code>Replace()<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>Replace()<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u3001\u3088\u308a\u76f4\u611f\u7684\u306b\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u69cb\u6587:<\/strong><\/p>\n<pre><code>$\u6587\u5b57\u5217.Replace(&quot;\u691c\u7d22\u6587\u5b57\u5217&quot;, &quot;\u7f6e\u63db\u5f8c\u306e\u6587\u5b57\u5217&quot;)<\/code><\/pre>\n<p><strong>\u5165\u529b\u4f8b:<\/strong><\/p>\n<pre><code>$original = &quot;PowerShell is great&quot;\n$replaced = $original.Replace(&quot;great&quot;, &quot;awesome&quot;)\nWrite-Output $replaced  # \u51fa\u529b: PowerShell is awesome<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E7%BD%AE%E6%8F%9B\"><\/span>\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u305f\u7f6e\u63db<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>-replace<\/code> \u306f\u6b63\u898f\u8868\u73fe\u304c\u4f7f\u3048\u308b\u305f\u3081\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u7f6e\u63db\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><strong>\u5165\u529b\u4f8b:<\/strong><\/p>\n<pre><code>$original = &quot;abc123xyz&quot;\n$replaced = $original -replace &quot;\\d+&quot;, &quot;999&quot;\nWrite-Output $replaced  # \u51fa\u529b: abc999xyz<\/code><\/pre>\n<p><code>\\d+<\/code> \u306f\u300c1\u3064\u4ee5\u4e0a\u306e\u6570\u5b57\u300d\u3092\u610f\u5473\u3059\u308b\u6b63\u898f\u8868\u73fe\u3067\u3001\u3059\u3079\u3066 <code>999<\/code> \u306b\u7f6e\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%A4%87%E6%95%B0%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E4%B8%80%E6%8B%AC%E3%81%A7%E7%BD%AE%E6%8F%9B\"><\/span>\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PowerShell\u3067\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3059\u308b\u306b\u306f\u3001\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u5165\u529b\u4f8b:<\/strong><\/p>\n<pre><code>$original = &quot;I love apples and oranges.&quot;\n$replacements = @{ &quot;apples&quot; = &quot;bananas&quot;; &quot;oranges&quot; = &quot;grapes&quot; }\n\nforeach ($key in $replacements.Keys) {\n    $original = $original -replace $key, $replacements[$key]\n}\n\nWrite-Output $original  # \u51fa\u529b: I love bananas and grapes.<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%86%85%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E7%BD%AE%E6%8F%9B%E3%81%99%E3%82%8B\"><\/span>\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PowerShell\u3067\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8aad\u307f\u53d6\u3063\u3066\u5909\u66f4\u3057\u3001\u4e0a\u66f8\u304d\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u69cb\u6587:<\/strong><\/p>\n<pre><code>(Get-Content &quot;\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9&quot;) -replace &quot;\u691c\u7d22\u6587\u5b57\u5217&quot;, &quot;\u7f6e\u63db\u5f8c\u306e\u6587\u5b57\u5217&quot; | Set-Content &quot;\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9&quot;<\/code><\/pre>\n<p><strong>\u5165\u529b\u4f8b:<\/strong><\/p>\n<pre><code>(Get-Content &quot;C:\\test\\sample.txt&quot;) -replace &quot;Hello&quot;, &quot;Hi&quot; | Set-Content &quot;C:\\test\\sample.txt&quot;<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f <code>C:\\test\\sample.txt<\/code> \u306e\u4e2d\u306e <code>Hello<\/code> \u3092 <code>Hi<\/code> \u306b\u7f6e\u63db\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A4%87%E6%95%B0%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E4%B8%80%E6%8B%AC%E7%BD%AE%E6%8F%9B\"><\/span>\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u7f6e\u63db<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u5834\u5408\u306f\u3001<code>Get-ChildItem<\/code> \u3068\u7d44\u307f\u5408\u308f\u305b\u307e\u3059\u3002<\/p>\n<p><strong>\u5165\u529b\u4f8b:<\/strong><\/p>\n<pre><code>Get-ChildItem &quot;C:\\test\\&quot; -Filter &quot;*.txt&quot; | ForEach-Object {\n    (Get-Content $_.FullName) -replace &quot;old_text&quot;, &quot;new_text&quot; | Set-Content $_.FullName\n}<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f <code>C:\\test\\<\/code> \u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e <code>.txt<\/code> \u30d5\u30a1\u30a4\u30eb\u306e <code>old_text<\/code> \u3092 <code>new_text<\/code> \u306b\u7f6e\u63db\u3057\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<div class=\"endinfo\">\n<ul data-spread=\"false\">\n<li>PowerShell \u306e <code>-replace<\/code> \u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u305f\u6587\u5b57\u5217\u7f6e\u63db<\/li>\n<li><code>Replace()<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u7f6e\u63db<\/li>\n<li>\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>PowerShell\u3092\u6d3b\u7528\u3059\u308b\u3068\u3001\u624b\u4f5c\u696d\u3067\u306f\u5927\u5909\u306a\u6587\u5b57\u5217\u7f6e\u63db\u3082\u4e00\u77ac\u3067\u884c\u3048\u307e\u3059\u3002\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell\u3092\u4f7f\u3063\u3066\u3001\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7f6e\u63db\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 \u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7c21\u5358\u306b\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044 \u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3057\u305f\u3044 \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3057\u305f\u3044&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10244,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204],"tags":[70],"class_list":{"0":"post-11453","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-powershell","8":"tag-70","9":"article cf"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=11453\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u4e00\u62ec\u7f6e\u63db\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"og:description\" content=\"PowerShell\u3092\u4f7f\u3063\u3066\u3001\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7f6e\u63db\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 \u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7c21\u5358\u306b\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044 \u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3057\u305f\u3044 \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3057\u305f\u3044...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=11453\" \/>\n<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-15T15:33:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png\" \/>\n\t<meta property=\"og:image:width\" content=\"857\" \/>\n\t<meta property=\"og:image:height\" content=\"607\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/extan.jp\/#website\",\"url\":\"https:\/\/extan.jp\/\",\"name\":\"\u30a8\u30af\u77ed\uff5cExtan.jp\",\"description\":\"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/extan.jp\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/?p=11453#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png\",\"contentUrl\":\"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png\",\"width\":857,\"height\":607,\"caption\":\"powershell\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/extan.jp\/?p=11453#webpage\",\"url\":\"https:\/\/extan.jp\/?p=11453\",\"name\":\"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u4e00\u62ec\u7f6e\u63db\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp\",\"isPartOf\":{\"@id\":\"https:\/\/extan.jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/extan.jp\/?p=11453#primaryimage\"},\"datePublished\":\"2025-03-15T15:33:29+00:00\",\"dateModified\":\"2025-03-15T15:33:29+00:00\",\"author\":{\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\"},\"breadcrumb\":{\"@id\":\"https:\/\/extan.jp\/?p=11453#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/extan.jp\/?p=11453\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/extan.jp\/?p=11453#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/extan.jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u4e00\u62ec\u7f6e\u63db\u3082\uff01\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a\",\"name\":\"\u30bf\u30ab\u30d2\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/extan.jp\/#personlogo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"caption\":\"\u30bf\u30ab\u30d2\u30ed@extan\"},\"url\":\"https:\/\/extan.jp\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/extan.jp\/?p=11453","og_locale":"ja_JP","og_type":"article","og_title":"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u4e00\u62ec\u7f6e\u63db\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","og_description":"PowerShell\u3092\u4f7f\u3063\u3066\u3001\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7f6e\u63db\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 \u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7c21\u5358\u306b\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044 \u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3057\u305f\u3044 \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3057\u305f\u3044...","og_url":"https:\/\/extan.jp\/?p=11453","og_site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","article_published_time":"2025-03-15T15:33:29+00:00","og_image":[{"width":857,"height":607,"url":"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30bf\u30ab\u30d2\u30ed@extan","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"5\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/extan.jp\/#website","url":"https:\/\/extan.jp\/","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/extan.jp\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=11453#primaryimage","inLanguage":"ja","url":"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png","contentUrl":"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png","width":857,"height":607,"caption":"powershell"},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=11453#webpage","url":"https:\/\/extan.jp\/?p=11453","name":"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u4e00\u62ec\u7f6e\u63db\u3082\uff01 - \u30a8\u30af\u77ed\uff5cExtan.jp","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=11453#primaryimage"},"datePublished":"2025-03-15T15:33:29+00:00","dateModified":"2025-03-15T15:33:29+00:00","author":{"@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=11453#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/extan.jp\/?p=11453"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=11453#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp\/"},{"@type":"ListItem","position":2,"name":"PowerShell\u3067\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\uff01\u8907\u6570\u4e00\u62ec\u7f6e\u63db\u3082\uff01"}]},{"@type":"Person","@id":"https:\/\/extan.jp\/#\/schema\/person\/ccb8849fcf749d5f74439b1af7d4df1a","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/#personlogo","inLanguage":"ja","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","caption":"\u30bf\u30ab\u30d2\u30ed@extan"},"url":"https:\/\/extan.jp\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/11453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11453"}],"version-history":[{"count":2,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/11453\/revisions"}],"predecessor-version":[{"id":14291,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/11453\/revisions\/14291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/10244"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}