{"id":8157,"date":"2023-06-10T20:24:32","date_gmt":"2023-06-10T11:24:32","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=8157"},"modified":"2023-06-10T20:24:33","modified_gmt":"2023-06-10T11:24:33","slug":"post-8157","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2023\/06\/10\/post-8157\/","title":{"rendered":"PowerShell ISE\u3067ps1\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u6587\u5b57\u5316\u3051\u3059\u308b"},"content":{"rendered":"\n<p>Windows10\u306ePowerShell ISE\u3067\u3001ps1\u30d5\u30a1\u30a4\u30eb\uff08PowerShell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u958b\u304f\u3068\u3001\u6587\u5b57\u5316\u3051\u3059\u308b\u3002\u65e5\u672c\u8a9e\u306e\u30b3\u30e1\u30f3\u30c8\u90e8\u5206\u304c\u6587\u5b57\u5316\u3051\u3059\u308b\u306e\u3067\u4f7f\u3044\u306b\u304f\u3044\u3002\u5bfe\u51e6\u65b9\u6cd5\u3092\u8abf\u3079\u3066\u307f\u305f\u306e\u3060\u304c\u3002<\/p>\n\n\n\n<p>PowerShell ISE\u306e\u8aad\u307f\u8fbc\u307f\u6642\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306f\u3001ShiftJIS\u3067\u3042\u308b\u3002\u3053\u306e\u8aad\u307f\u8fbc\u307f\u6642\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002OS\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3067\u306f\u306a\u304f\u3066\u3001PowerShell ISE\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u3042\u308b\u305f\u3081\u3002<\/p>\n\n\n\n<p>ps1\u30d5\u30a1\u30a4\u30eb\u306b\u3001BOM\u4ed8\u3067UTF-8\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u958b\u3044\u3066\u3082\u6587\u5b57\u5316\u3051\u305b\u305a\u3001UTF-8\u3068\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u308c\u308b\u3002<\/p>\n\n\n\n<p>Windows10\u306f\u3001\u73fe\u5728\u306f\u30e1\u30e2\u5e33\u306a\u3069\u3067\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306bBOM\u3092\u4ed8\u3051\u3066\u3044\u306a\u3044\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306fUTF-8\u3067\u3001BOM\u306a\u3057\u306fUTF-8\u89e3\u91c8\u3055\u308c\u308b\u3057\u3001\u305d\u308c\u3067\u4fdd\u5b58\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p>PowerShell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306f\u3001\u4fdd\u5b58\u3059\u308b\u3068\u304d\u306b\u62e1\u5f35\u5b50\u3092 .ps1 \u3067\u4fdd\u5b58\u3059\u308b\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001BOM\u3067\u6587\u5b57\u30b3\u30fc\u30c9\u3092UTF-8\u6307\u5b9a\u3067\u4fdd\u5b58\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3082\u3057\u3001.ps1\u30d5\u30a1\u30a4\u30eb\u3092PowerShell ISE\u3067\u958b\u304f\u3068\u304d\u306b\u6587\u5b57\u5316\u3051\u3059\u308b\u5834\u5408\u306f\u3001\u4e00\u5ea6\u3001\u30e1\u30e2\u5e33\u306a\u3069\u3067\u958b\u304d\u3001BOM\u4ed8\u3067\u4fdd\u5b58\u3057\u306a\u304a\u3059\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u306a\u3093\u3068\u5384\u4ecb\u306a\u3002Powershell ISE \u306f\u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u5b9f\u884c\u6642\u3057\u305f\u308a\u3059\u308b\u3068\u304d\u306b\u4fbf\u5229\u3060\u3063\u305f\u306e\u3060\u3051\u3069\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows10\u306ePowerShell ISE\u3067\u3001ps1\u30d5\u30a1\u30a4\u30eb\uff08PowerShell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u958b\u304f\u3068\u3001\u6587\u5b57\u5316\u3051\u3059\u308b\u3002\u65e5\u672c\u8a9e\u306e\u30b3\u30e1\u30f3\u30c8\u90e8\u5206\u304c\u6587\u5b57\u5316\u3051\u3059\u308b\u306e\u3067\u4f7f\u3044\u306b\u304f\u3044\u3002\u5bfe\u51e6\u65b9\u6cd5\u3092\u8abf\u3079\u3066\u307f\u305f\u306e\u3060\u304c\u3002 Pow [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[13],"class_list":["post-8157","post","type-post","status-publish","format-standard","hentry","category-windows","category-tech-memo","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=8157"}],"version-history":[{"count":2,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8157\/revisions"}],"predecessor-version":[{"id":8330,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/8157\/revisions\/8330"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=8157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=8157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=8157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}