Copy files using Powershell

From Michael's Information Zone
Revision as of 13:49, 19 June 2017 by Michael.mast (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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