I want to copy some file from local computer to remote in a standard way:
Copy-Item -Path C:\some_path\test.txt -Destination \\server\c$\some_other_path\test.txt
Unfortunately i have to specify custom port due to routing on server
. I am pretty new to remote management and powershell. Is there any way to specify port for Copy-Item or UNC path? If not, are they some other reasonable solutions to this problem? Thanks in advance.