Created
July 25, 2011 13:11
-
-
Save chrissie1/1104085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the package | |
Write-Host "Downloading $url to $file" | |
$cred = get-credential | |
$proxy = New-Object System.Net.WebProxy("proxyserver") | |
$proxy.credentials = $cred.GetNetworkCredential(); | |
$downloader = new-object System.Net.WebClient | |
$downloader.proxy = $proxy | |
$downloader.DownloadFile($url, $file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment