Powershell Update-Help RSS news feed

Late June, Powershell MVP Don Jones informed the community that there was a problem with the display of the help after you updated it.

The Powershell Team responsible for updating help files both fixed the problem and also created a RSS feed to let us know what changed 🙂

Nice. Isn’t it?

#Requires -Version 3
function Get-UpdateHelpNewsFeed {
    try {
        Invoke-RestMethod "http://sxp.microsoft.com/feeds/msdntn/PowerShellHelpVersions" -ErrorAction Stop | 
        Select Title,@{
            l='Date'; 
            e={
                [datetime]::Parse($_.pubDate)
            }
        },@{
            l='Desc';
            e={
                $_.Description -replace "\<br\s?/?\>","`n" -replace "\</?[I|i|b]\s?\>"," "
            }
        }
    } catch {
        Write-Warning -Message "Failed to read RSS feed because $($_.Exception.Message)"
    }
}

As my favorite RSS reader is dead, I’ve created the above helper function.
Now you can do:

Get-UpdateHelpNewsFeed |             
Select -First 1 -Property Date,Desc |             
ft -Wrap -AutoSize

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s