Use copy-item in a remote computer

#copies the contents of a folder to another folder

$session = New-PSSession -ComputerName <computername>
Copy-Item -path <Path> -Destination <Path> -Recurse -ToSession $session

Leave a Reply

Your email address will not be published. Required fields are marked *