I am trying to use PowerShell to log into a website and download a file.
However I can't get PS to pass the credentials properly.
Here is my PS:
$webclient = new-object System.Net.WebClient
$webclient.Credentials = new-object System.Net.NetworkCredential("username","password","domain")
$webpage = $webclient.DownloadString("url goes here")
Here is the log in box I get when I hit the site in IE: