System.Net.WebClient
Aus Wiki-WebPerfect
Version vom 28. Juni 2018, 15:40 Uhr von Admin (Diskussion | Beiträge)
Download from URL with "System.NET.WebClient"
$webclient = new-object System.Net.WebClient #If certificate Selfsigned #[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} #If WebRequest need a User authentication #$webclient.Credentials = new-object System.Net.NetworkCredential($username, $password) $webpage = $webclient.DownloadString("<URL>")