{"id":4941,"date":"2012-09-22T00:01:00","date_gmt":"2012-09-22T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2012\/09\/22\/weekend-scripter-use-powershell-to-explore-an-rss-feed-from-a-blog\/"},"modified":"2012-09-22T00:01:00","modified_gmt":"2012-09-22T00:01:00","slug":"weekend-scripter-use-powershell-to-explore-an-rss-feed-from-a-blog","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/weekend-scripter-use-powershell-to-explore-an-rss-feed-from-a-blog\/","title":{"rendered":"Weekend Scripter: Use PowerShell to Explore an RSS Feed from a Blog"},"content":{"rendered":"<p><b>Summary<\/b>: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore an RSS feed from the Hey, Scripting Guy! Blog.<\/p>\n<p>Microsoft Scripting Guy, Ed Wilson, is here. It is just a few days until I speak at the Central Ohio Windows PowerShell User Group. The Scripting Wife and I will be there on October 2, 2012. For registration information and a pr&eacute;cis of my talk, see the <a href=\"http:\/\/www.powershellgroup.org\/content\/central-ohio-powershell-users-group-october-2012\" target=\"_blank\">Central Ohio PowerShell Users Group site<\/a>.<\/p>\n<p>On the weekend, I like to play around with Windows PowerShell. I also like to experiment with new tea combinations. This morning I am sipping a nice Monkey Picked Oolong tea with little jasmine buds, lemon grass, and hibiscus flower. I sweetened the tea with a little bit of crushed cinnamon stick. Yum!<\/p>\n<p>I ran across an old blog post the other day that was written by a guy who was really pleased that Windows PowerShell enabled him to reduce a 25-line script to five lines to retrieve RSS feeds. In Windows PowerShell&nbsp;3.0, that is one line. Here is the line to retrieve an RSS feed from the Hey, Scripting Guy! Blog.<\/p>\n<p style=\"padding-left: 30px\">[xml]$hsg = Invoke-WebRequest http:\/\/blogs.technet.com\/b\/heyscriptingguy\/atom.aspx<\/p>\n<p>The important thing here is to ensure that I use the [xml] type accelerator to convert the returned information into an <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.xml.xmldocument.aspx\">XMLDocument<\/a> object. After I have the returned information, I view it in the Windows PowerShell console. I see there is a <b>Feed<\/b><i> <\/i>property as shown here.<\/p>\n<p style=\"padding-left: 30px\">PS C:\\&gt; [xml]$hsg = Invoke-WebRequest http:\/\/blogs.technet.com\/b\/heyscriptingguy\/atom<\/p>\n<p style=\"padding-left: 30px\">.aspx<\/p>\n<p style=\"padding-left: 30px\">PS C:\\&gt; $hsg<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">xml&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xml-stylesheet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; feed<\/p>\n<p style=\"padding-left: 30px\">&#8212;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;-<\/p>\n<p style=\"padding-left: 30px\">version=&#8221;1.0&#8243; encoding=&#8221;U&#8230; type=&#8221;text\/xsl&#8221; href=&#8221;ht&#8230; feed<\/p>\n<p>When I access the <b>Feed<\/b><i> <\/i>property, I see a number of interesting items, the most important of which is the <b>Entry<\/b><i> <\/i>property. These properties are shown here.<\/p>\n<p style=\"padding-left: 30px\">PS C:\\&gt; $hsg.feed<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">xmlns&nbsp;&nbsp;&nbsp;&nbsp; : http:\/\/www.w3.org\/2005\/Atom<\/p>\n<p style=\"padding-left: 30px\">lang&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : en-US<\/p>\n<p style=\"padding-left: 30px\">title&nbsp;&nbsp;&nbsp;&nbsp; : title<\/p>\n<p style=\"padding-left: 30px\">subtitle&nbsp; : subtitle<\/p>\n<p style=\"padding-left: 30px\">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : http:\/\/blogs.technet.com\/b\/heyscriptingguy\/atom.aspx<\/p>\n<p style=\"padding-left: 30px\">link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : {link, link}<\/p>\n<p style=\"padding-left: 30px\">generator : generator<\/p>\n<p style=\"padding-left: 30px\">updated&nbsp;&nbsp; : 2012-09-09T00:01:00Z<\/p>\n<p style=\"padding-left: 30px\">entry&nbsp;&nbsp;&nbsp;&nbsp; : {entry, entry, entry, entry&#8230;}<\/p>\n<p>This is where Windows PowerShell&nbsp;3.0 really comes in handy. I can directly access the collection of entries by using dotted notation. It is cool and powerful. In the following example, I show only the first record.<\/p>\n<p style=\"padding-left: 30px\">PS C:\\&gt; $hsg.feed.entry<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">title&nbsp;&nbsp;&nbsp;&nbsp; : PowerTip: Redirect PowerShell Warning Messages to a Text File<\/p>\n<p style=\"padding-left: 30px\">link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : link<\/p>\n<p style=\"padding-left: 30px\">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2012\/09\/20\/powertip-r<\/p>\n<p style=\"padding-left: 30px\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edirect-powershell-warning-messages-to-a-text-file.aspx<\/p>\n<p style=\"padding-left: 30px\">published : 2012-09-20T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">updated&nbsp;&nbsp; : 2012-09-20T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">content&nbsp;&nbsp; : content<\/p>\n<p style=\"padding-left: 30px\">author&nbsp;&nbsp;&nbsp; : author<\/p>\n<p style=\"padding-left: 30px\">category&nbsp; : {category, category, category, category}<\/p>\n<p>Of interest to me are the blog posts with their publication dates. I can easily retrieve a list of blog titles and dates as shown here.<\/p>\n<p style=\"padding-left: 30px\">PS C:\\&gt; $hsg.feed.entry | select title, published<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; published<\/p>\n<p style=\"padding-left: 30px\">&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Redirect PowerShell Warning M&#8230; 2012-09-20T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell Redirection Operators fo&#8230; 2012-09-20T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Display PowerShell Informatio&#8230; 2012-09-19T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Create Intelligent De&#8230; 2012-09-19T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Use Show-Command to See Power&#8230; 2012-09-18T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Create a PowerShell Scheduled Job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012-09-18T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Examine Automatic Variables&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012-09-17T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerShell and User Access Logging&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012-09-17T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Easily Find the PowerShell 3&#8230;. 2012-09-16T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: Get Detailed PowerShe&#8230; 2012-09-16T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Quickly Find System Updates v&#8230; 2012-09-15T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: What Does a PowerShel&#8230; 2012-09-15T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Where Did that PowerShell Cmd&#8230; 2012-09-14T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Easily Unblock All Files in a Directory&#8230; 2012-09-14T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Use PowerShell to Easily Read&#8230; 2012-09-13T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Simplify Access to XM&#8230; 2012-09-13T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Easily Find WMI Class Schema &#8230; 2012-09-12T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Troubleshoot ???Provi&#8230; 2012-09-12T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">The Scripting Guy Talks About PowerShel&#8230; 2012-09-11T19:41:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Discovering PowerShell Functions 2012-09-11T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Bespoke Scripting? What Do You Want in &#8230; 2012-09-11T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Working with the Maximum Hist&#8230; 2012-09-10T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Increase PowerShell Command History to &#8230; 2012-09-10T07:01:00Z<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Two Quick Ways to Check Varia&#8230; 2012-09-09T18:59:00Z<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: PowerShell Saturday S&#8230; 2012-09-09T07:01:00Z<\/p>\n<p>One problem with the previous output is that the dates and times are a bit difficult for me to understand. I use a hash table to change the display of the date as shown here.<\/p>\n<p style=\"padding-left: 30px\">PS C:\\&gt; $hsg.feed.entry | select title, @{LABEL=&#8221;Published&#8221;; EXPRESSION={[datetime]$_<\/p>\n<p style=\"padding-left: 30px\">.Published} }<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Published<\/p>\n<p style=\"padding-left: 30px\">&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Redirect PowerShell Warning M&#8230; 9\/20\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell Redirection Operators fo&#8230; 9\/20\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Display PowerShell Informatio&#8230; 9\/19\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Create Intelligent De&#8230; 9\/19\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Use Show-Command to See Power&#8230; 9\/18\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Create a PowerShell Scheduled Job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9\/18\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Examine Automatic Variables&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9\/17\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">PowerShell and User Access Logging&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9\/17\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Easily Find the PowerShell 3&#8230;. 9\/16\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: Get Detailed PowerShe&#8230; 9\/16\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Quickly Find System Updates v&#8230; 9\/15\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: What Does a PowerShel&#8230; 9\/15\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Where Did that PowerShell Cmd&#8230; 9\/14\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Easily Unblock All Files in a Directory&#8230; 9\/14\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Use PowerShell to Easily Read&#8230; 9\/13\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Simplify Access to XM&#8230; 9\/13\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Easily Find WMI Class Schema &#8230; 9\/12\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Troubleshoot ???Provi&#8230; 9\/12\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">The Scripting Guy Talks About PowerShel&#8230; 9\/11\/2012 3:41:00 PM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Discovering PowerShell Functions 9\/11\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Bespoke Scripting? What Do You Want in &#8230; 9\/11\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Working with the Maximum Hist&#8230; 9\/10\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Increase PowerShell Command History to &#8230; 9\/10\/2012 3:01:00 AM<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Two Quick Ways to Check Varia&#8230; 9\/9\/2012 2:59:00 PM<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: PowerShell Saturday S&#8230; 9\/9\/2012 3:01:00 AM<\/p>\n<p>Now that I have a DateTime object instead of a simple string, I can do other things, such as show the morning and afternoon postings of the Hey Scripting Guy! Blog.<\/p>\n<p style=\"padding-left: 30px\">PS C:\\&gt; $hsg.feed.entry | select title, @{LABEL=&#8221;Published&#8221;; EXPRESSION={[datetime]$_<\/p>\n<p style=\"padding-left: 30px\">.Published} } | select title, @{LABEL=&#8221;Morning\/Afternoon&#8221;; EXPRESSION={if($_.publishe<\/p>\n<p style=\"padding-left: 30px\">d.timeofday.hours -gt 12) {&#8220;Afternoon&#8221;} ELSE {&#8220;Morning&#8221;}} } | sort &#8216;morning\/afternoon<\/p>\n<p style=\"padding-left: 30px\">&#8216;<\/p>\n<p style=\"padding-left: 30px\">title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Morning\/Afternoon<\/p>\n<p style=\"padding-left: 30px\">&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Redirect PowerShell Warning M&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Working with the Maximum Hist&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Discovering PowerShell Functions Afternoon<\/p>\n<p style=\"padding-left: 30px\">The Scripting Guy Talks About PowerShel&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Easily Find WMI Class Schema &#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Use PowerShell to Easily Read&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Two Quick Ways to Check Varia&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Quickly Find System Updates v&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Where Did that PowerShell Cmd&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Examine Automatic Variables&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Use Show-Command to See Power&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Display PowerShell Informatio&#8230; Afternoon<\/p>\n<p style=\"padding-left: 30px\">PowerTip: Easily Find the PowerShell 3&#8230;. Afternoon<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: Get Detailed PowerShe&#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">PowerShell and User Access Logging&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Morning<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: What Does a PowerShel&#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Easily Unblock All Files in a Directory&#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Create a PowerShell Scheduled Job&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Morning<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Simplify Access to XM&#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Troubleshoot ???Provi&#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell to Create Intelligent De&#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Bespoke Scripting? What Do You Want in &#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Use PowerShell Redirection Operators fo&#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Increase PowerShell Command History to &#8230; Morning<\/p>\n<p style=\"padding-left: 30px\">Weekend Scripter: PowerShell Saturday S&#8230; Morning<\/p>\n<p>Another cool thing that I can do is check the tags on my blogs. To do this, I use the <b>Category<\/b><i> <\/i>property from the entry object. I group based on the terms of the categories, and then sort the list. This command is shown here.<\/p>\n<p style=\"padding-left: 30px\">$hsg.feed.entry.category | group term -NoElement | sort count &ndash;Descending<\/p>\n<p>The command and associated output are shown in the image that follows.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/3404.wes-9-22-12-01.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/3404.wes-9-22-12-01.png\" alt=\"Image of command output\" title=\"Image of command output\" \/><\/a><\/p>\n<p>That is about it for today&mdash;I need to get to work on my new Windows PowerShell book project.<\/p>\n<p>I invite you to follow me on <a href=\"http:\/\/bit.ly\/scriptingguystwitter\" target=\"_blank\">Twitter<\/a> and <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\" target=\"_blank\">Facebook<\/a>. If you have any questions, send email to me at <a href=\"mailto:scripter@microsoft.com\" target=\"_blank\">scripter@microsoft.com<\/a>, or post your questions on the <a href=\"http:\/\/bit.ly\/scriptingforum\" target=\"_blank\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p><b>Ed Wilson, Microsoft Scripting Guy<\/b>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore an RSS feed from the Hey, Scripting Guy! Blog. Microsoft Scripting Guy, Ed Wilson, is here. It is just a few days until I speak at the Central Ohio Windows PowerShell User Group. The Scripting Wife and I will be there on [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[362,222,3,167,61,45],"class_list":["post-4941","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powershell-3","tag-rss","tag-scripting-guy","tag-using-the-internet","tag-weekend-scripter","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore an RSS feed from the Hey, Scripting Guy! Blog. Microsoft Scripting Guy, Ed Wilson, is here. It is just a few days until I speak at the Central Ohio Windows PowerShell User Group. The Scripting Wife and I will be there on [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/4941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=4941"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/4941\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=4941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=4941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=4941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}