Get-TNWikiNinjaBlogFeed.ps1


<#PSScriptInfo
 
.VERSION 1.1
 
.GUID e61b9dae-0830-4eae-9768-5bade21164ae
 
.AUTHOR Chendrayan Venkatesan
 
.COMPANYNAME
 
.COPYRIGHT
 
.TAGS
 
.LICENSEURI
 
.PROJECTURI
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
 
 
#>


<#
 
.DESCRIPTION
 PowerShell Demo Script to retrieve RSS feed information of WiniNinjas Blog
 
#>
 
param 
(
    # RSS Blog Feed Url
    [Parameter()]
    [uri]
    $Uri = "https://blogs.technet.microsoft.com/wikininjas/feed/"
)
Function Get-TNWikiNinjaBlogFeed
{
<#
.SYNOPSIS
    Get TechNet Wiki latest blog posts
.DESCRIPTION
    Get-TNWikiNinjaBlogFeed retrieves the latest Wiki Ninjas blog posts. The output is based on the RSS limits.
    Maximum 25 can be retrieved.
.LINK
    http://social.technet.microsoft.com/wiki/contents/articles/34967.powershell-tip-get-technet-wikininja-offical-blog-rss-feed-information.aspx
.NOTES
    For demo pupose exampled are included in TechNet Wiki article Usage section.
    use help Get-TNWikiNinjaBlogFeed -Online
#>

    param 
    (
        # RSS Blog Feed Url
        [Parameter()]
        [uri]
        $Uri = "https://blogs.technet.microsoft.com/wikininjas/feed/"
    )
    Invoke-RestMethod -Uri $Uri
}