I need a way to copy file from a remote PC to local disk using Powershell v2.0 trying with admin rights of that remote PC.
We can copy a file by means of below cmdlet:
Copy-Item -Path C:\somefile.txt -Destination c:\someotherfile.txt
But my question is how to specify my local PC path as Destination path or the remote PC path as the source path in the above cmdlet? How to specify UNC Path for source or destination paths in above cmdlet so that we can actually copy the file to local PC from the remote one?