title: Powershell Access denied localhost as Administrator
body: <p>I have a powershell script which has been installing our software for years on our servers. Since a while we have a new server, which as far as we can check is a duplicate of an older one. 
  We have a script: </p>
  
  <pre><code>Invoke-Command -ComputerName $appServer -ScriptBlock $ConfigureServer 
  Where $appServer = localhost
  </code></pre>
  
  <p>this command works on all the other servers but on the new one we get Access Denied. We have tried things as <code>Enable-PSRemoting -Force</code>. We also start Powershell as administrotor. We have been stuck on this for days. </p>
  
  <p>Hope someone can help.</p>