{"id":2064,"date":"2018-04-03T05:13:05","date_gmt":"2018-04-02T20:13:05","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2064"},"modified":"2018-05-01T09:36:12","modified_gmt":"2018-05-01T00:36:12","slug":"powershell-%e5%ae%9f%e8%a1%8c%e6%a8%a9%e9%99%90%e6%9c%89%e5%8a%b9%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2064","title":{"rendered":"[PowerShell] \u5b9f\u884c\u6a29\u9650\u6709\u52b9\u5316"},"content":{"rendered":"<h3>\u75c7\u72b6<\/h3>\n<blockquote><p>\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb C:\\Users\\JaneDoe\\WindowsPowerShell\\xxx.ps1 \u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u300cabout_Execution_Policies\u300d(https:\/\/g<br \/>\no.microsoft.com\/fwlink\/?LinkID=135170) \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h3>\u5b9f\u884c\u6a29\u9650\u6709\u52b9\u5316\u306e\u65b9\u6cd5<\/h3>\n<h4>[\u63a8\u5968] PowerShell\u306e\u8d77\u52d5\u6642\u306b\u5b9f\u884c\u6a29\u9650\u6709\u52b9\u5316<\/h4>\n<pre class=\"lang:default highlight:0 decode:true \" >powershell -ExecutionPolicy RemoteSigned<\/pre>\n<p>\u203b \u30ab\u30ec\u30f3\u30c8\u306ePowerShell\u306e\u4e2d\u306b\u9650\u5b9a\u3057\u3066 SecurityPolicy \u306e\u7de9\u548c(RemoteSinged)\u304c\u53cd\u6620\u3055\u308c\u308b\u3002<br \/>\n<!--more--><\/p>\n<p>&nbsp;<\/p>\n<h4>[\u975e\u63a8\u5968] \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u306b\u5bfe\u3057\u3066\u6709\u52b9 (<code>--LocalMachine<\/code>)<\/h4>\n<p>\u300c\u7ba1\u7406\u8005\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u300d\u3067PowerShell\u3092\u958b\u304d\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre class=\"lang:ps decode:true \" >PS C:\\&gt; Set-ExecutionPolicy RemoteSigned<\/pre>\n<ul>\n<li><b>Restricted<\/b> : \u5b9f\u884c\u5236\u9650 (default)<\/li>\n<li><b>RemoteSigned<\/b> : \u4fe1\u983c\u3055\u308c\u305f\u767a\u884c\u5143\u306b\u3088\u308a\u7f72\u540d<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2064\/setexecutionpolicy\" rel=\"attachment wp-att-2067\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.chihayafuru.jp\/tech\/wp-content\/uploads\/2018\/04\/SetExecutionPolicy-1024x87.png\" alt=\"\" width=\"625\" height=\"53\" class=\"alignnone size-large wp-image-2067\" srcset=\"https:\/\/www.chihayafuru.jp\/tech\/wp-content\/uploads\/2018\/04\/SetExecutionPolicy-1024x87.png 1024w, https:\/\/www.chihayafuru.jp\/tech\/wp-content\/uploads\/2018\/04\/SetExecutionPolicy-300x25.png 300w, https:\/\/www.chihayafuru.jp\/tech\/wp-content\/uploads\/2018\/04\/SetExecutionPolicy-768x65.png 768w, https:\/\/www.chihayafuru.jp\/tech\/wp-content\/uploads\/2018\/04\/SetExecutionPolicy-624x53.png 624w, https:\/\/www.chihayafuru.jp\/tech\/wp-content\/uploads\/2018\/04\/SetExecutionPolicy.png 1416w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 \u3053\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb C:\\Users\\JaneDoe\\WindowsPowerShell\\xxx.ps1 \u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u300cabout_Ex [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[72],"class_list":["post-2064","post","type-post","status-publish","format-standard","hentry","category-memo","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2064"}],"version-history":[{"count":16,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2064\/revisions"}],"predecessor-version":[{"id":2261,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2064\/revisions\/2261"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}