{"id":3703,"date":"2018-05-31T23:39:11","date_gmt":"2018-05-31T14:39:11","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=3703"},"modified":"2023-05-28T08:49:33","modified_gmt":"2023-05-27T23:49:33","slug":"%e3%80%90powershell%e3%80%91%e5%9f%ba%e7%a4%8e%e7%9a%84%e3%81%aa%e3%81%93%e3%81%a8%ef%bc%88%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%97%e3%83%ad%e3%83%b3%e3%83%97%e3%83%88%e3%81%a8%e3%81%ae%e9%81%95","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=3703","title":{"rendered":"\u3010PowerShell\u3011\u57fa\u790e\u7684\u306a\u3053\u3068\uff08\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3084VBS\u3068\u306e\u9055\u3044\u7b49\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306a\u3069\uff09"},"content":{"rendered":"<h2>PoweShell\u304c\u767b\u5834\u3059\u308b\u307e\u3067\u306e\u7d4c\u7def<\/h2>\n<h3>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3068\u306e\u9055\u3044\u306f\uff1f<\/h3>\n<p>Windows\u3067\u30b3\u30de\u30f3\u30c9\u3084\u3001\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u7b49\u3001\u69d8\u3005\u306a\u64cd\u4f5c\u3092\u884c\u3046\u305f\u3081\u306e\u30c4\u30fc\u30eb\u300c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u300d\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u306f\u3001<span style=\"color: #ff0000;\"><strong>Windows<\/strong><strong>\u30b5\u30fc\u30d0\u30fc\u3084\u30a2\u30d7\u30ea\u3092\u7d30\u304b\u304f\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd\u306f\u4e4f\u3057\u3044<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u767b\u5834\u3057\u305f\u306e\u304c\u3001JScript\u3084\u3001VBScript\u7b49\u306eWSH(Windows Script Host)\u3067\u3057\u305f\u3002<\/p>\n<h3>WSH(Windows Script Host)\u3068\u306e\u9055\u3044\u306f\uff1f<\/h3>\n<p>WSH\u3067\u306f\u3001\u78ba\u304b\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6a5f\u80fd\u3068\u3057\u3066\u306f<span style=\"color: #ff0000;\"><strong>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3084\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u306b\u6bd4\u3079\u305f\u3089\u3001\u6c7a\u3081\u7d30\u3084\u304b\u306b.NET\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5236\u5fa1\u3067\u304d\u308b\u306e\u3067\u5927\u5e45\u306b\u5f37\u5316\u3055\u308c\u307e\u3057\u305f\u3002<\/strong><\/span><\/p>\n<p>\u3057\u304b\u3057\u3001\u3082\u3057\u5bfe\u8a71\u5f62\u5f0f\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u3082\u3046\u3068\u601d\u3063\u305f\u969b\u306b\u3001WSH\u3067\u306f\u3001\u3044\u3061\u3044\u3061\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3067\u300c\u306f\u3044\u300d\u3001\u300c\u3044\u3044\u3048\u300d\u3092\u805e\u3044\u305f\u308a\u3001\u5165\u529b\u3055\u305b\u305f\u308a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u3068\u304b\u306e\u5834\u5408\u3067\u306f\u3042\u307e\u308a\u4f7f\u3044\u52dd\u624b\u306e\u826f\u3044\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u306a\u3044\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u767b\u5834\u3057\u305f\u306e\u304cPowerShell\u3067\u3059\u3002<\/p>\n<h2>PowerShell\u306e\u7279\u5fb4<\/h2>\n<ul>\n<li>\u305f\u3060\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3044\u3046\u3060\u3051\u3067\u306a\u304f\u3001.NET Framework\u306e\u5f37\u529b\u306a\u6a5f\u80fd\u3092\u5229\u7528\u3067\u304d\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u74b0\u5883\u3068\u3057\u3066\u306e\u5f79\u5272\u3082\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>.NET Framework\u74b0\u5883\u3067\u52d5\u4f5c\u3059\u308b\u306e\u3067\u3001.NET Framework\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>.NET Framework\u3068\u306f\uff1f<\/h3>\n<p>Microsoft\u306e\u6b21\u4e16\u4ee3\u3092\u610f\u8b58\u3057\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30b3\u30f3\u30bb\u30d7\u30c8\u3084\u3001\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u3059\u7528\u8a9e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>WindowsXP(2002\u5e74)\u30671.0\u304c\u767b\u5834\u3057\u3066\u4ee5\u964d\u3001\u3069\u3093\u3069\u3093\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u3044\u307e\u3059\u3002\uff082018\u5e745\u6708\u73fe\u5728\u306f4.7\u307e\u3067\u51fa\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n<h2>\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d\u65b9\u6cd5<\/h2>\n<p>\u304a\u4f7f\u3044\u306eWindowsPC\u306ePowerShell\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300c$PSVersionTable\u300d\u3068\u6253\u3061\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u300cPSVersion\u300d\u3068\u3044\u3046\u6b04\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3733\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/ps\u30d0\u30fc\u30b8\u30e7\u30f3.png\" alt=\"\" width=\"431\" height=\"211\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/ps\u30d0\u30fc\u30b8\u30e7\u30f3.png 431w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/ps\u30d0\u30fc\u30b8\u30e7\u30f3-300x147.png 300w\" sizes=\"(max-width: 431px) 100vw, 431px\" \/><\/p>\n<h2>PowerShell\u306e\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30ea\u30ea\u30fc\u30b9\u5e74\u6708<\/th>\n<th>PowerShell\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<th>.NET Framework\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<\/tr>\n<tr>\n<td>2006\u5e7411\u6708<\/td>\n<td>1.0<\/td>\n<td>2.0<\/td>\n<\/tr>\n<tr>\n<td>2009\u5e7410\u6708<\/td>\n<td>2.0<\/td>\n<td>\uff12.0(GUI\u64cd\u4f5c\u306b\u306f3.5\u4ee5\u4e0a\uff09<\/td>\n<\/tr>\n<tr>\n<td>2012\u5e749\u6708<\/td>\n<td>3.0<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>2013\u5e7410\u6708<\/td>\n<td>4.0<\/td>\n<td>4.5<\/td>\n<\/tr>\n<tr>\n<td>2015\u5e7412\u6708<\/td>\n<td>5.0<\/td>\n<td>4.5<\/td>\n<\/tr>\n<tr>\n<td>2017\u5e746\u6708<\/td>\n<td>5.1<\/td>\n<td>4.5.2<\/td>\n<\/tr>\n<tr>\n<td>2018\u5e741\u6708<\/td>\n<td>6.0<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>6.0<\/h3>\n<p>2018\u5e741\u6708\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fPowerSHell 6.0\u304b\u3089\u306f\u3001Linux\u3084Mac OS\u7b49\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"PoweShell\u304c\u767b\u5834\u3059\u308b\u307e\u3067\u306e\u7d4c\u7def \u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3068\u306e\u9055\u3044\u306f\uff1f Windows\u3067\u30b3\u30de\u30f3\u30c9\u3084\u3001\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u7b49\u3001\u69d8\u3005\u306a\u64cd\u4f5c\u3092\u884c\u3046\u305f\u3081\u306e\u30c4\u30fc\u30eb\u300c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u300d\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002 \u3057\u304b\u3057\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067 [&hellip;]","protected":false},"author":1,"featured_media":3712,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[158],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3703"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3703"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3703\/revisions"}],"predecessor-version":[{"id":20802,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3703\/revisions\/20802"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/3712"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3703"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}