{"id":2125,"date":"2016-05-24T00:47:30","date_gmt":"2016-05-23T15:47:30","guid":{"rendered":"http:\/\/1bed.allright.life\/?p=2125"},"modified":"2020-04-18T21:35:02","modified_gmt":"2020-04-18T12:35:02","slug":"post-2125","status":"publish","type":"post","link":"https:\/\/1bed.allright.life\/?p=2125","title":{"rendered":"PowerShell \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3059\u308b"},"content":{"rendered":"<p>PowerShell \u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n<h2>\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c<\/h2>\n<p>PowerShell Ver.3 \u3067 hoge.sp1 \u3092\u5b9f\u884c\u3059\u308b<\/p>\n<pre><code class=\"language-powershell\">PS&gt; powershell -v 3 .\\hoge.ps1<\/code><\/pre>\n<h2>Windows 10 \u3067 Powershell Ver.2 \u3067\u5b9f\u884c\u3059\u308b<\/h2>\n<p>PowerShell Ver.2 \u3067\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u3067\u305f<\/p>\n<pre><code class=\"language-powershell\">PS &gt; powershell -v 2 .\\hoge.ps1\n.NET Framework \u306e\u30d0\u30fc\u30b8\u30e7\u30f3 v2.0.50727 \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002Windows PowerShell \u306e\u30d0\u30fc\u30b8\u30e7\u30f3 2 \u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/code><\/pre>\n<ul>\n<li>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u6a5f\u80fd\u3092\u958b\u304f<br \/>\n\u30e1\u30cb\u30e5\u30fc\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066 [\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c] \u3092\u9078\u629e\u3001appwiz.cpl \u3068\u5165\u529b\u3057\u3066 [OK] \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/1.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/1-300x177.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n[Windows \u306e\u6a5f\u80fd\u306e\u6709\u52b9\u5316\u307e\u305f\u306f\u7121\u52b9\u5316] \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/2.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/2-300x165.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n[.NET Framework 3.5 (.NET 2.0 \u304a\u3088\u3073 3.0 \u3092\u542b\u3080)] \u3092\u9078\u629e\u3057\u3066 [OK] \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/3.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/3-300x266.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n[Windows Update \u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b] \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/4.png\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/4-300x256.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>\u3057\u3070\u3089\u304f\u5f85\u3064\u3068\u5b8c\u4e86\u3057\u307e\u3059<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/5.png\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/05\/5-300x256.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u3053\u308c\u3067 PowerShell Ver.2 \u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n<h2>Windows 10 \u3067\u5b9f\u969b\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u6307\u5b9a\u3057\u3066\u8a66\u3057\u3066\u307f\u308b<\/h2>\n<p>$PSVersionTable \u3068\u3060\u3051\u8a18\u8ff0\u3057\u305f hoge.ps1 \u3092\u6e96\u5099\u3057\u3066\u8a66\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-powershell\">PS&gt; powershell -v 2 .\\hoge.ps1\n\nName                           Value\n----                           -----\nCLRVersion                     2.0.50727.8670\nBuildVersion                   6.1.7600.16385\nPSVersion                      2.0\nWSManStackVersion              2.0\nPSCompatibleVersions           {1.0, 2.0}\nSerializationVersion           1.1.0.1\nPSRemotingProtocolVersion      2.1\n\nPS&gt; powershell -v 3 .\\hoge.ps1\n\nName                           Value\n----                           -----\nPSVersion                      5.0.10586.122\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\nBuildVersion                   10.0.10586.122\nCLRVersion                     4.0.30319.42000\nWSManStackVersion              3.0\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\n\nPS&gt; powershell -v 4 .\\hoge.ps1\n\nName                           Value\n----                           -----\nPSVersion                      5.0.10586.122\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\nBuildVersion                   10.0.10586.122\nCLRVersion                     4.0.30319.42000\nWSManStackVersion              3.0\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\n\nPS&gt; powershell -v 5 .\\hoge.ps1\n\nName                           Value\n----                           -----\nPSVersion                      5.0.10586.122\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\nBuildVersion                   10.0.10586.122\nCLRVersion                     4.0.30319.42000\nWSManStackVersion              3.0\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell \u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c PowerShell Ver.3 \u3067 hoge.sp1 \u3092\u5b9f\u884c\u3059\u308b PS&gt; powershell -v 3 .\\hoge. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[62],"class_list":["post-2125","post","type-post","status-publish","format-standard","hentry","category-program","tag-powershell"],"_links":{"self":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2125"}],"version-history":[{"count":2,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2125\/revisions"}],"predecessor-version":[{"id":3157,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2125\/revisions\/3157"}],"wp:attachment":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}