你可以使用如下的Powershell脚本来实现:
$creds = Get-Credential
$s = New-PSSession -ComputerName remotehostname -Credential $creds
Invoke-Command -Session $s -ScriptBlock {
$url = "http://example.com/image.jpg"
$destination = "C:/MyFolder/image.jpg"
(New-Object System.Net.WebClient).DownloadFile($url, $destination)
}









没有回复内容