Accessing the Internet from PowerShell: Get-WebPage Part2
Friday, February 8, 2013 at 12:00PM
Kieran Jacobsen in Coding, WebClient, powershell, web

Welcome back.

So last time we looked at the get-webpage CMDLet, but first, you may notice that it is different from this version of this CMDLet to that I showed off at Infrastructure Saturday; your right, it has been updated. The update is to make supplying user-agent headers more easily.

Let’s go back to the get-externalip function we defined a few months ago. Previously it was:

Now if we make use of the cmdlet we just finished:

Pretty neat? 

I will leave it here, explore the cmdlet on your own.

 

 

Article originally appeared on Aperture Science (http://kjacobsen.squarespace.com/).
See website for complete article licensing information.