I have a file on my computer that I would like to remotely put onto another computer on the network. I've tried to use Copy-Item and do it while in a PS-Session but it doesn't work that way. Thanks!
Edit: Duplicate Question
I have a file on my computer that I would like to remotely put onto another computer on the network. I've tried to use Copy-Item and do it while in a PS-Session but it doesn't work that way. Thanks!
Edit: Duplicate Question
copy-item "C:\Local Directory\filename.txt" "\\remotecomputer\C$\Remote Directory"
The most common prerequisite is that you are a member of the local Administrators group on the remote computer.