Created
December 6, 2013 09:46
-
-
Save janikvonrotz/7821180 to your computer and use it in GitHub Desktop.
PowerShell: Download File from SSL secured Web Server
#PowerShell
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
$Url = "https://server/file.ext" | |
$Path = "c:\downloads\file.ext" | |
[Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} | |
$webClient = new-object System.Net.WebClient | |
$webClient.DownloadFile( $Url, $Path ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment