Love to code, although it bugs me.

Windows Powershell V3 includes command like wget/curl

3 comments
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 http://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 http://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 :)

3 comments :