########################################################## # # Script-Name: Rss-Read.ps1 # # authors: Niklas Goude # # Url: http://www.PowerShell.nu # ########################################################## param ([switch]$help) function GetHelp() { $HelpText = @" DESCRIPTION: NAME: Rss-Read.ps1 Gets the Latest posts from www.PowerShell.nu and presents them in PowerShell PARAMETERS: -help Prints the HelpFile (Optional) SYNTAX: Rss-Read.ps1 This script Gets the latest posts from www.PowerShell.nu and presents the information in the PowerShell host. The Script also uses the COM Object Sapi.SPVoice to Read the Headline for each post. Rss-Read.ps1 -help Displays the help topic for the script "@ $HelpText } function Get-Rss { $WebClient = New-Object Net.WebClient $DownloadString = $WebClient.DownloadString("http://www.powershell.nu/feed/rss/") $rss = $DownloadString.Split() | select-string -case "" $rss = $rss -replace ".*","" $rss = $rss -replace ".*","" $rss | ForEach { if($_ -eq "http://www.powershell.nu") { # Skip the index page } else { # Collecting information for each Page $GetWeb = $WebClient.DownloadString($_) $GetWeb = $GetWeb.Split("`n") $TextStart = ($GetWeb | Select-string -case '