Accessing the Internet from PowerShell: Get-WebPage Part2
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.