{"id":137,"date":"2018-02-05T08:48:19","date_gmt":"2018-02-04T19:48:19","guid":{"rendered":"https:\/\/content.ronella.xyz\/apps\/wordpress\/?p=137"},"modified":"2018-02-05T13:14:47","modified_gmt":"2018-02-05T00:14:47","slug":"running-unsigned-script-temporarily-in-powershell","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=137","title":{"rendered":"Running Unsigned Script Temporarily in Powershell"},"content":{"rendered":"<ol>\n<li>Get the current execution policy using the following command and remember it:\n<pre>Get-ExecutionPolicy<\/pre>\n<\/li>\n<li>Set the execution policy to unrestricted using the following command:\n<pre>Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted<\/pre>\n<\/li>\n<li>Execute the unsigned script.<\/li>\n<li>Return the back execution policy to what it was <em>(i.e. from step 1)<\/em>. Using the following command syntax similar to step 2:\n<p style=\"padding-left: 30px;\"><em>Note: This is not required if you know that you are only running the script that you trust.<\/em><\/p>\n<pre>Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy &lt;EXECUTION_POLICY_FROM_STEP1&gt;<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Get the current execution policy using the following command and remember it: Get-ExecutionPolicy Set the execution policy to unrestricted using the following command: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Execute the unsigned script. Return the back execution policy to what it was (i.e. from step 1). Using the following command syntax similar to step 2: Note: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/137"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=137"}],"version-history":[{"count":8,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":149,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions\/149"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}