Estoy tratando de usar PowerShell para iniciar sesión en un sitio web y descargar un archivo.Cómo iniciar sesión en el sitio web con autenticación básica usando Powershell
Sin embargo, no puedo hacer que la EP pase correctamente las credenciales.
Aquí es mi PS:
$webclient = new-object System.Net.WebClient
$webclient.Credentials = new-object System.Net.NetworkCredential("username","password","domain")
$webpage = $webclient.DownloadString("url goes here")
Aquí es el registro en el cuadro de recibo cuando golpeo el sitio en IE: