Files
Sandbox/Copy-ITDRemoteFiles.ps1
Zack Meier 03dba08135 sync
2026-04-15 15:42:41 -05:00

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:\