PowerShell Remoting
Create session
$Session = New-PSSession -ComputerName DATABASE01Now to copy from our localhost to DB01:
Copy-Item -Path C:\samplefile.txt -ToSession $Session -Destination C:\Users\Administrator\Desktop\And to copy from DB01 to our localhost:
Copy-Item -Path "C:\Users\Administrator\Desktop\DATABASE.txt" -Destination C:\ -FromSession $SeLast updated