title: Powershell profile.ps1 cannot be loaded because its operation is blocked by software restriction policies
body: <p>When starting a PowerShell host (powershell.exe, PowerShellISE, NuGet Package Manager Console etc) I was getting the following error message.</p>
  
  <blockquote>
    <p>File C:\Users\MyUserName\Documents\WindowsPowerShell\profile.ps1
    cannot be loaded because its operation is blocked by software
    restriction policies. For more information, contact your system
    administrator.</p>
  </blockquote>
  
  <p>This was particularly problematic in the case of the NuGet Package Manager Console as the console was left in a disabled / unusable state after the error. Other PowerShell hosts could at least be used.</p>
  
  <p>I had problems a few weeks ago, when setting up my workstation at a new job, because a Group Policy setting was applying a <em>MachinePolicy</em> of <em>AllSigned</em>. That issue had been resolved by changing the setting to <em>RemoteSigned</em>. I checked that this setting is still in place using the command:</p>
  
  <pre><code>Get-ExecutionPolicy -List
  </code></pre>
  
  <p>I also confirmed that this <strong>$profile.CurrentUserAllHosts</strong> file exists but my Internet searches for another <em>"Group Policy setting"</em> revealed nothing of interest. My PowerShell version information is:</p>
  
  <pre><code>$PSVersionTable
  
  Name                           Value
  ----                           -----
  PSVersion                      3.0
  WSManStackVersion              3.0
  SerializationVersion           1.1.0.1
  CLRVersion                     4.0.30319.18408
  BuildVersion                   6.2.8370.0
  PSCompatibleVersions           {1.0, 2.0, 3.0}
  PSRemotingProtocolVersion      2.2
  </code></pre>