title: How to trust a certificate in Windows Powershell
body: <p>I am using <code>Windows 7</code>, and want to run signed scripts from <code>Powershell</code>, the <code>security-settings</code> of Powershell are set to <code>"all-signed"</code>, and my scripts are signed with a <code>valid certificate</code> from my company. I have also added the <code>.pfx-file</code> to my local certificate store <code>(right-clicked the pfx-file and installed)</code>.</p>
  
  <p>However, when I start a signed script, I get a message that says:</p>
  
  <pre><code>"Do you want to run software from this untrusted publisher?
  File Z:\Powershell Signed Scripts\signed.ps1 is published by CN=[MyCompanyName] and is not trusted on your system. Only run scripts from
   trusted publishers.
  [V] Never run  [D] Do not run  [R] Run once  [A] Always run  [?] Help
  (default is "D"):"
  </code></pre>
  
  <p>Since I want to automatically call these scripts on my systems, I would like to add my imported certificate to the trusted list on my system, so that I do not get a message anymore when I run a signed script for the first time. How can I make my certificate a trusted one?</p>