Powershell session file transfer
Confirm WinRM port is open
Test-NetConnection -ComputerName DTABASE01 -Port 5985Creating Powershell remote session to DATABASE01
$Session =New-PSSession -ComputerName DATABASE01Copy "samplefile.txt" from localhost to DATABASE01 session
Copy-Item -Path C:\samplefile.txt -ToSession $Session -Destination C:\Users\Administrator\Desktop\Copy "database.txt" from DATABASE01 session to localhost
Copy-Item -Path "C:\Users\Administrator\Desktop\DATABASE.txt" -Destination C:\ -FromSession $SessionLast updated