I am trying to copy file from my local machine to a server destination
My Script: Copy-Item –Path D:\Test.txt –Destination '\\10.10.X.X\c$'
Error:
Copy-Item : The network path was not found At D:\PS_Test_script.ps1:1 char:2 + Copy-Item –Path D:\Test.txt –Destination '\\10.10.X.28X\c$' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Copy-Item], IOException + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommand The server has credentials, I am guessing that, I have to invoke something to use the credentials.
pingthe ip address?