Welcome to MSDN Blogs Sign in | Join | Help

June 2008 - Posts

Downloading files from the internet in PowerShell (with progress)

Ok, so the easiest way (that I know of) to download files in powershell from the internet is to use the .net WebClient. The simple way I started with was the two liner: $client = New-Object "System.Net.WebClient" $client.DownloadFile("http://somesite.com/largefile.zip","c:\temp\largefile.zip"
Posted by Jason Niver | 0 Comments
Filed under:
 
Page view tracker