Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $webclient = New-Object Net.WebClient
- # The next 5 lines are required if your network has a proxy server
- $webclient.Credentials = [System.Net.CredentialCache]::DefaultCredentials
- if($webclient.Proxy -ne $null) {
- $webclient.Proxy.Credentials = `
- [System.Net.CredentialCache]::DefaultNetworkCredentials
- }
- # This is the main call
- $webclient.DownloadString($URL) | Out-Null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement