Code snippets : Downloading file from URL in PowerShell
To download file from URL I used following piece of code:
$fileURL = "http://server/file.zip" $fileName = "C:\Downloads\file.zip" $webclient = New-Object System.Net.WebClient $webclient.DownloadFile($fileURL,$fileName)