Remote_DownloadToMachine.ps1
|
function Remote-DownloadToMachine { [CmdletBinding()] param ( [string]$SourcePath, [string]$DestinationPath, [string]$RemoteComputer ) Copy-Item -Path $SourcePath -Destination "\\$RemoteComputer\$DestinationPath" -Recurse Write-Host "Files copied to $RemoteComputer." } |