title: Powershell Operation Blocked By Execution Policy
body: <p>Running:</p>
  
  <pre><code>Import-Module PowerShellGet
  </code></pre>
  
  <p>Gives the following error:</p>
  
  <blockquote>
    <p>The file was skipped because of the following validation exception: File C:\program files\powershell\7\Modules\PackageManagement\PackageManagement.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..</p>
  </blockquote>
  
  <p>Running: </p>
  
  <pre><code>Get-ExecutionPolicy -List
  </code></pre>
  
  <p>will display LocalMachine as RemoteSigned</p>
  
  <p>Any suggestions to get the code to run with correct execution policy?</p>