Get-PSFab

Get-PSFab… or how-to automate the RSS reading of this blog!

function Get-PSFab {
$webClient=New-Object System.Net.WebClient

#UNCOMMENT THE 2 BELOW LINES IF YOU NEED TO USE SYSTEM PROXY
#$webClient.UseDefaultCredentials=$true
#$webClient.Proxy.Credentials=$webClient.Credentials
$webClient.Headers.Add("user-agent", "PowerShell Script")
$url="http://www.zerrouki.com/feed/"
$get=$webClient.DownloadString("$url")

$get.rss.channel.item | Select Title, Link, pubDate
}

 
The output:

title                                   link                                    pubDate
-----                                   ----                                    -------
Get-Uptime                              http://www.zerrouki.com/get-uptime/     Thu, 20 Dec 2012 09:01:59 +0000
The Fantastic Four                      http://www.zerrouki.com/the-fantasti... Mon, 17 Dec 2012 11:46:20 +0000
Microsoft Security Bulletin Summary ... http://www.zerrouki.com/microsoft-se... Wed, 12 Dec 2012 09:08:51 +0000
LogCentralizer                          http://www.zerrouki.com/logcentralizer/ Tue, 04 Dec 2012 15:23:27 +0000
Test your PowerShell skills             http://www.zerrouki.com/test-your-po... Mon, 03 Dec 2012 11:34:08 +0000
The Daily Reboot (with execution check) http://www.zerrouki.com/the-daily-re... Mon, 03 Dec 2012 09:39:19 +0000
Merry XMas                              http://www.zerrouki.com/merry-xmas/     Fri, 30 Nov 2012 23:00:46 +0000
SafeCopy                                http://www.zerrouki.com/safecopy/       Fri, 30 Nov 2012 16:43:45 +0000
Monitor Services (Active!)              http://www.zerrouki.com/monitor-serv... Fri, 30 Nov 2012 15:33:27 +0000
Tracing in ASP.NET application (trac... http://www.zerrouki.com/tracing-in-a... Fri, 30 Nov 2012 11:06:57 +0000

Leave a Reply

Scroll to Top