{"id":360,"date":"2023-11-27T15:50:07","date_gmt":"2023-11-27T06:50:07","guid":{"rendered":"https:\/\/support.three-meister.com\/techwiki\/?post_type=blog&#038;p=360"},"modified":"2023-11-27T16:12:04","modified_gmt":"2023-11-27T07:12:04","slug":"powershell%e6%97%a5%e6%9c%ac%e8%aa%9e%e3%81%8c%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91%e3%81%99%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6%e6%96%b9%e6%b3%95","status":"publish","type":"blog","link":"https:\/\/support.three-meister.com\/techwiki\/?blog=powershell%e6%97%a5%e6%9c%ac%e8%aa%9e%e3%81%8c%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91%e3%81%99%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6%e6%96%b9%e6%b3%95","title":{"rendered":"[PowerShell]\u65e5\u672c\u8a9e\u304c\u6587\u5b57\u5316\u3051\u3059\u308b\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<p>PowerShell\u3092\u8d77\u52d5\u3057\u305f\u969b\u306b\u65e5\u672c\u8a9e\u8868\u793a(\u3089\u3057\u304d)\u7b87\u6240\u304c\u6587\u5b57\u5316\u3051\u3059\u308b\u5834\u5408\u304c\u3042\u308b<\/p>\n<h3 class=\"styled_h3\">\u5bfe\u8c61OS<\/h3>\n<p>Windows 11 \/ windows server 2022<\/p>\n<h3 class=\"styled_h3\">\u6587\u5b57\u5316\u3051\u7a2e\u985e<\/h3>\n<p>\u6587\u5b57\u5316\u3051\u306b\u306f\u4ee5\u4e0b\u306e2\u7a2e\u985e\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308b\u3002<br \/>\n\uff11\uff0e\u300c\u7e3a\u745a\uff6a\uff6d\u7e67\u300d\u306e\u3088\u3046\u306a\u5316\u3051\u65b9\u3092\u3057\u3066\u3044\u308b\u5834\u5408<br \/>\n\uff12\uff0e\u300c\u25a1\u25a1:\u25a1\u25a1\u25a1\u300d\u306e\u3088\u3046\u306a\u5316\u3051\u65b9\u3092\u3057\u3066\u3044\u308b\u5834\u5408<\/p>\n<p>\uff11\u306e\u5834\u5408\u306f\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u554f\u984c\u304c\u3042\u308b\u306e\u3067\u3001\u4e0b\u8a18\u300c\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306e\u5bfe\u51e6\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\uff12\u306e\u5834\u5408\u306f\u3001\u30d5\u30a9\u30f3\u30c8\u304c\u65e5\u672c\u8a9e\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u554f\u984c\u306a\u305f\u3081\u3001\u4e0b\u8a18\u300c\u30d5\u30a9\u30f3\u30c8\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306e\u5bfe\u51e6\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4 class=\"styled_h4\">\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306e\u5bfe\u51e6<\/h4>\n<p>\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u8a2d\u5b9a\u304c\u304a\u304b\u3057\u3044\u3068\u3001\u3046\u307e\u304f\u6587\u5b57\u3092\u30a8\u30f3\u30b3\u30fc\u30c9\u3067\u304d\u305a\u306b\u6587\u5b57\u5316\u3051\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u9069\u5207\u306a\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u554f\u984c\u3092\u89e3\u6c7a\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nPowershell \u3067 chcp \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<br \/>\n\u73fe\u5728\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f chcp \u306e\u307f\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"well2\">&gt; chcp<br \/>\n\u73fe\u5728\u306e\u30b3\u30fc\u30c9 \u30da\u30fc\u30b8: 437<br \/>\n\u203b<code>chcp<\/code>\u00a0\u306f\u00a0<strong>CH<\/strong>ange<strong>C<\/strong>ode<strong>P<\/strong>age \u306e\u7565<\/div>\n<div>\n<p>UTF-8 \u306b\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f 65001 \u306b\u3001Shift_JIS \u306b\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f 932 \u3068\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u306f\u3001UTF-8 \u306b\u5909\u66f4\u3059\u308b\u5834\u5408\u3092\u4f8b\u306b\u624b\u9806\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u304b\u3089 %userprofile%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Windows PowerShell \u3092\u958b\u304f\u3002<\/li>\n<li>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u958b\u304f<\/li>\n<li>\u30ea\u30f3\u30af\u5148\u306b -NoExit -Command &#8220;chcp 65001&#8221; \u3092\u8ffd\u8a18\u3059\u308b\uff08\u5168\u4f53\u3068\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\uff09\n<div class=\"well2\">%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command &#8220;chcp 65001&#8221;<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<h4 class=\"styled_h4\">\u30d5\u30a9\u30f3\u30c8\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306e\u5bfe\u51e6<\/h4>\n<p>\u6b27\u6587\u30d5\u30a9\u30f3\u30c8\u306a\u3069\u3001\u3072\u3089\u304c\u306a\u3084\u6f22\u5b57\u3092\u542b\u307e\u306a\u3044\u30d5\u30a9\u30f3\u30c8\u3067\u65e5\u672c\u8a9e\u3092\u51fa\u529b\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3044\u308f\u3086\u308b\u8c46\u8150\uff08\u25a1\uff09\u304c\u305f\u304f\u3055\u3093\u51fa\u73fe\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u3001\u65e5\u672c\u8a9e\u5bfe\u5fdc\u306e\u30d5\u30a9\u30f3\u30c8\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3007\u30d5\u30a9\u30f3\u30c8\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5<\/p>\n<ol>\n<li>Powershell\u3092\u8d77\u52d5\u3059\u308b<\/li>\n<li>\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u958b\u304f<\/li>\n<li>\u30d5\u30a9\u30f3\u30c8\u30bf\u30d6\u306b\u9077\u79fb<\/li>\n<li>\u30d5\u30a9\u30f3\u30c8\u3092\u00a0<code>\uff2d\uff33 \u30b4\u30b7\u30c3\u30af<\/code>\u00a0\u306a\u3069\u306e\u65e5\u672c\u8a9e\u5bfe\u5fdc\u30d5\u30a9\u30f3\u30c8\u306b\u5909\u66f4\u3059\u308b<\/li>\n<li>OK \u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u5909\u66f4\u3092\u53cd\u6620\u3059\u308b<br \/>\n\u203b\u6b21\u56de\u8d77\u52d5\u6642\u3082\u8a2d\u5b9a\u5909\u66f4\u5f8c\u306e\u72b6\u614b\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n","protected":false},"featured_media":365,"template":"","blog_category":[49],"class_list":["post-360","blog","type-blog","status-publish","has-post-thumbnail","hentry","blog_category-powershell"],"_links":{"self":[{"href":"https:\/\/support.three-meister.com\/techwiki\/index.php?rest_route=\/wp\/v2\/blog\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.three-meister.com\/techwiki\/index.php?rest_route=\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/support.three-meister.com\/techwiki\/index.php?rest_route=\/wp\/v2\/types\/blog"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.three-meister.com\/techwiki\/index.php?rest_route=\/wp\/v2\/media\/365"}],"wp:attachment":[{"href":"https:\/\/support.three-meister.com\/techwiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360"}],"wp:term":[{"taxonomy":"blog_category","embeddable":true,"href":"https:\/\/support.three-meister.com\/techwiki\/index.php?rest_route=%2Fwp%2Fv2%2Fblog_category&post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}