wget with Powershell v2

PS:> (new-object System.Net.WebClient).DownloadString("https://www.google.com") >> output.txt

The URL should have http or https or web client will look for a file on disk. Powershell 3 and higher has other ways of doing the wget.

Leave a Reply