title: PowerShell Copy-Item: The System detected a possible attempt to compromise security
body: <p>I am trying to copy files from local computer to remote computer.</p>
  <p>Here is my  code</p>
  <pre><code>$localPath='D:\Apps\temp.txt'
  $remoteComputerLocation='\\192.168.1.200\E$\tempfolder'
  Copy-Item $localPath -Destination $remoteComputerLocation -Force
  </code></pre>
  <p>So when i try to run this i got this error</p>
  <blockquote>
  <p>Copy-Item: The System detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you. At line:3 char 1
  Copy-Item $localPath -Destination $remoteComputerLocation -Force
  +CategoryInfo : NotSpecified: (:) [Copy-Item], IOException
  +FullyQualifiedErrorID : System.IO.IOException, Microsoft.Powershell.Commands.CopyItemCommand.</p>
  </blockquote>
  <p>I am using this to copy files from local computer to remote computer. I have also used <strong>-Credential</strong> parameter.</p>