Copy files using Powershell

From Michael's Information Zone
Jump to navigation Jump to search

Server 2016 Core

[1]Using WinRM and Powershell sessions seems to be the easiest method for this.

$session=get-pssession
copy-item -tosession $session -path c:\local\path -destination c:\remote\path -recurse