Skip to content

Instantly share code, notes, and snippets.

@emiliano-poggi
Last active March 31, 2017 13:27
Show Gist options
  • Save emiliano-poggi/24df7f65dc2c4a3d2e3bcdfd5891f88b to your computer and use it in GitHub Desktop.
Save emiliano-poggi/24df7f65dc2c4a3d2e3bcdfd5891f88b to your computer and use it in GitHub Desktop.
Download file from web using Powershell
$webCli = new-object System.Net.WebClient
$webCli.Credentials = [System.Net.CredentialCache]::DefaultCredentials
# $webCli.Credentials = new-object System.Net.NetworkCredential(user,pwd,domain)
$webCli.DownloadFile($FileUrl, $LocalFilePath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment