{"id":120,"date":"2015-03-16T21:52:39","date_gmt":"2015-03-16T10:52:39","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=120"},"modified":"2022-12-02T11:42:43","modified_gmt":"2022-12-02T00:42:43","slug":"files-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/files-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system\/","title":{"rendered":"Files Cannot Be Loaded Because Running Scripts is Disabled on This System"},"content":{"rendered":"<h3>Symptom<\/h3>\n<p>When running the following command<\/p>\n<p><code>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $UserCredential -Authentication Basic -AllowRedirection<\/code><\/p>\n<p>you receive the following error in Remote Powershell for Exchange Online (Office 365)<\/p>\n<p><strong>Files cannot be loaded because running scripts is disabled on this system. \u00a0Provide a valid certificate with which to sign the files.<\/strong><\/p>\n<p><a href=\"https:\/\/4it.com.au\/kb\/wp-content\/uploads\/2015\/03\/Scipts-Disabled-Remote-Powershell.jpg\"><img class=\"aligncenter wp-image-121 size-full\" data-original=\"https:\/\/4it.com.au\/kb\/wp-content\/uploads\/2015\/03\/Scipts-Disabled-Remote-Powershell.jpg\" alt=\"Scipts-Disabled---Remote-Powershell\" width=\"868\" height=\"635\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Resolution<\/h3>\n<p>Run the following command<\/p>\n<p><code>Set-ExecutionPolicy RemoteSigned<\/code><\/p>\n<p>and then run the original command again.<\/p>\n<p><em>Note: You&#8217;ll only need to run this command once from the computer you are using to connect to Remote Powershell, not every time you connect.<\/em><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Symptom When running the following command $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $UserCredential -Authentication Basic -AllowRedirection you receive the following error in Remote Powershell for Exchange Online (Office 365) Files cannot be loaded because running scripts is disabled on this system. \u00a0Provide a valid certificate with which to sign the files. &nbsp; Resolution [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[45],"article-tag":[47,46,48],"class_list":["post-120","article","type-article","status-publish","format-standard","hentry","article-category-remote-powershell","article-tag-exchange-online","article-tag-office-365","article-tag-remote-powershell"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":7,"sum_votes":27},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/120\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=120"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}