Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $webclient = New-Object Net.WebClient
  2. # The next 5 lines are required if your network has a proxy server
  3. $webclient.Credentials = [System.Net.CredentialCache]::DefaultCredentials
  4. if($webclient.Proxy -ne $null) {
  5. $webclient.Proxy.Credentials = `
  6. [System.Net.CredentialCache]::DefaultNetworkCredentials
  7. }
  8. # This is the main call
  9. $webclient.DownloadString($URL) | Out-Null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement