6 lines
287 B
PowerShell
6 lines
287 B
PowerShell
$AdminCred = Get-Credential # run once console session
|
|
|
|
$PSSession = New-PSSsession -ComputerName itddeqappt1.nd.gov -Credential $AdminCred
|
|
|
|
Copy-Item -Path C:\localpath.txt -ToSession $PSSession -Destination C:\
|
|
Copy-Item -Path C:\remotepath.txt -FromSession $PSSession -Destination C:\ |