The Windows Management Framework 3.0 – Community Technology Preview (CTP) has been released by Microsoft and with it comes Powershell V3.
Included on this release of powershell comes a command I’ve personally been missing for ages. A command to get or just test a given URL address. The is called:
Invoke-WebRequest
A simple example of the command usage would be the get this blog’s home page into a single text file:
Invoke-WebRequest https://rambletech.wordpress.com/ -OutFile c:\temp\blog.txt
Another example, more complex, would be to get this blogs RSS feed and parse it:
([xml](Invoke-WebRequest https://rambletech.wordpress.com/rss).content).rss.channel.item | Select Title, Link
To download the Windows Management Framework 3.0 CTP 1 visit this address from Microsoft.
Happy programming 🙂
Pingback: Posting SOAP request from Windows Powershell | Rambles on Technology
Superb post, thank you a whole lot for sharing. Do you have an RSS feed I can subscribe to?
Thank you. To subscribe the feed use the following URL: https://rambletech.wordpress.com/feed/