-2

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

user3704471
  • 35
  • 1
  • 5
  • show us your code so far – idarryl Jun 25 '14 at 14:52
  • 1
    possible duplicate of [Need help on Powershell Copy-Item from network drives](http://stackoverflow.com/questions/14653851/need-help-on-powershell-copy-item-from-network-drives) – Raf Jun 25 '14 at 14:53
  • Thank you @Raf, I searched for it but couldn't find what I was looking for. I figured it was here somewhere. – user3704471 Jun 25 '14 at 15:03

1 Answers1

0
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.

Bill_Stewart
  • 22,916
  • 4
  • 51
  • 62