Skip to content

Instantly share code, notes, and snippets.

@vadimii
Created February 17, 2013 12:27
Show Gist options
  • Select an option

  • Save vadimii/4971299 to your computer and use it in GitHub Desktop.

Select an option

Save vadimii/4971299 to your computer and use it in GitHub Desktop.
Fetch URL data with PowerShell
param($url)
$webclient = new-object Net.WebClient
$webclient.Credentials = new-object Net.NetworkCredential("admin", "pass")
$webpage = $webclient.DownloadString($url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment