Answer the question
In order to leave comments, you need to log in
How to share files between two remote computers using PowerShell Remoting?
You need to copy a file from one remote PC ( Win 8.1 ) to another remote PC ( Win 8.1 ). I work on a PC with Win 10 . I enter the following:
$pc1 = New-PSSession RemotePC1 -credential ""
$pc2 = New-PSSession RemotePC2 -credential ""
Enter-PSSession $pc1
Copy-Item -path "C:\Users\RemotePC1\Desktop\file.txt -destination "C:\Users\RemotePC2\Desktop -ToSession $pc2"
Answer the question
In order to leave comments, you need to log in
and if so?
copy-item \\remote-pc1\c$\test\file.txt \\remote-pc2\d$\test\
Why do you need remouting to copy files? Standard exchange via smb and all - remoting for administration. You can also dig a hole with a fork - but there are more suitable tools for this)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question