title: Powershell Closes Instantly
body: <p>I've looked all of the the internet and I cannot find any information that applies to this situation.</p>
  <p>Powershell closes immediately upon starting. When I run it in Command Prompt I get the following:</p>
  <pre><code>Windows PowerShell terminated with the following error:
   Unable to cast object of type 'System.String' to type 'System.String[]'.
  </code></pre>
  <p>I have checked the following folders and no profiles exist:</p>
  <blockquote>
  <p>c:\users\me\appdata\microsoft\windows\powershell</p>
  <p>c:\windows\system32\windowspowershell\v1.0\</p>
  <p>c:\windows\systwow64\windowspowershell\v1.0\</p>
  </blockquote>
  <p>I have tried to run with the following commands and have no luck:</p>
  <p><code>powershell -noexit</code></p>
  <p><code>powershell -noprofile</code></p>
  <p>I have run the following commands and have no luck:</p>
  <p><code>sfc.exe /scannow</code></p>
  <p><code>DISM.exe /Online /Cleanup-image /Restorehealth</code></p>
  <p>I also have gone to Control Panel -&gt; Uninstall a Program -&gt; Turn Windows features on or off then,
  Removed Powershell, rebooted, then re-installed it.</p>
  <p>After doing all of these steps I still am not able to run Powershell. ISE does not work either.</p>