Difference between revisions of "Copy files using Powershell"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "==Server 2016 Core== <ref>https://msdn.microsoft.com/en-us/library/mt708806(v=vs.85).aspx</ref>Using WinRM and Powershell sessions seems to be the easiest method for this. <pr...")
 
(No difference)

Latest revision as of 14:49, 19 June 2017

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