Last active
March 31, 2017 13:27
-
-
Save emiliano-poggi/24df7f65dc2c4a3d2e3bcdfd5891f88b to your computer and use it in GitHub Desktop.
Download file from web using 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
$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