Skip to content

Instantly share code, notes, and snippets.

@janikvonrotz
Created December 6, 2013 09:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janikvonrotz/7821180 to your computer and use it in GitHub Desktop.
Save janikvonrotz/7821180 to your computer and use it in GitHub Desktop.
PowerShell: Download File from SSL secured Web Server #PowerShell
$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