{"id":3161,"date":"2010-01-26T12:09:32","date_gmt":"2010-01-26T12:09:32","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2010\/01\/26\/the-powerscripting-centennial\/"},"modified":"2019-02-18T13:06:00","modified_gmt":"2019-02-18T20:06:00","slug":"the-powerscripting-centennial","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/the-powerscripting-centennial\/","title":{"rendered":"The PowerScripting Centennial"},"content":{"rendered":"<p>99 podcasts of Pure Power. That\u2019s what the <a href=\"http:\/\/powerscripting.wordpress.com\/\">PowerScripting Podcast<\/a> has been churning out for almost <a href=\"http:\/\/powerscripting.wordpress.com\/2007\/03\/15\/episode-zero\/\">three years<\/a>! Well, this week is extra special, as you might imagine from the title of this post. On Thursday, they record episode one hundred: a huge milestone by any means. A testament to dedication and passion.<\/p>\n<p>Episode #100 looks like it\u2019s going to be fun: <a href=\"http:\/\/powerscripting.wordpress.com\/2010\/01\/12\/we-need-your-tips\/\">tips, tricks, and who knows what else<\/a>. Join em\u2019 live on UStream if you want to be part:<\/p>\n<blockquote>\n<p><em>Come check out our <\/em><a href=\"http:\/\/www.ustream.tv\/channel\/powerscripting-podcast\"><em>live video stream<\/em><\/a><em> as we record the show! We usually air every Thursday at 9:30pm EST (GMT-5), unless otherwise noted on our blog. (<\/em><a href=\"http:\/\/www.ustream.tv\/channel\/powerscripting-podcast\"><em>Live video<\/em><\/a><em>) (<\/em><a href=\"http:\/\/www.google.com\/calendar\/ical\/powerscripting.net_s5pcni813kpe6d6kkunqdambu4%40group.calendar.google.com\/public\/basic.ics\"><em>add to calendar<\/em><\/a><em>) (<\/em><a href=\"http:\/\/www.google.com\/calendar\/hosted\/powerscripting.net\/embed?src=powerscripting.net_s5pcni813kpe6d6kkunqdambu4%40group.calendar.google.com&amp;ctz=America\/New_York\"><em>view calendar<\/em><\/a><em>) (<\/em><a href=\"http:\/\/www.google.com\/calendar\/feeds\/powerscripting.net_s5pcni813kpe6d6kkunqdambu4@group.calendar.google.com\/public\/basic\"><em>rss feed<\/em><\/a><em>)<\/em><\/p>\n<\/blockquote>\n<p>Not only is episode #100 exemplary for its PowerShell goodness, it in fact makes it one of the most long running and persistent podcasts on the internet. Here\u2019s a little script that digs through the internet to give you a sense \u2013 100 episodes places the PowerScripting podcast in the upper 10% of all Podcasts when it comes to longevity:<\/p>\n<blockquote>\n<div style=\"border-bottom: black 1px solid;border-left: black 1px solid;padding-bottom: 5px;padding-left: 5px;width: 650px;padding-right: 5px;font-family: consolas,lucida console;font-size: 10pt;overflow: auto;border-top: black 1px solid;border-right: black 1px solid;padding-top: 5px\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td valign=\"top\">\n<div style=\"padding-bottom: 5px;padding-left: 5px;padding-right: 5px;font-family: consolas,lucida console;background: #cecece;font-size: 10pt;padding-top: 5px\">001                <br \/>002                 <br \/>003                 <br \/>004                 <br \/>005                 <br \/>006                 <br \/>007                 <br \/>008                 <br \/>009                 <br \/>010                 <\/div>\n<\/td>\n<td valign=\"top\" nowrap=\"nowrap\">\n<div style=\"padding-bottom: 5px;padding-left: 5px;padding-right: 5px;font-family: consolas,lucida console;background: #fcfcfc;font-size: 10pt;padding-top: 5px\"><span style=\"color: #ff4500\">$wc<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #0000ff\">New-Object<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #8a2be2\">System.Net.WebClient<\/span>                 <br \/><span style=\"color: #ff4500\">$total<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #800080\">0<\/span>                 <br \/><span style=\"color: #ff4500\">$items<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #00008b\">for<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #ff4500\">$trial<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #800080\">10<\/span><span style=\"color: #000000\">;<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$trial<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">-lt<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #800080\">220<\/span><span style=\"color: #000000\">;<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$trial<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">+=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #800080\">5<\/span><span style=\"color: #000000\">)<\/span>                 <br \/><span style=\"color: #000000\">{<\/span>                 <br \/><span style=\"color: #000000\">&#160;&#160;&#160; <\/span><span style=\"color: #ff4500\">$page<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$wc<\/span><span style=\"color: #a9a9a9\">.<\/span><span style=\"color: #000000\">DownloadString<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #8b0000\">&quot;http:\/\/www.bing.com\/search?q=podcast+%22episode+%2B&quot;<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">+<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$trial<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">+<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #8b0000\">&quot;%22&quot;<\/span><span style=\"color: #000000\">)<\/span>                 <br \/><span style=\"color: #000000\">&#160;&#160;&#160; <\/span><span style=\"color: #008080\">[int]<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$count<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$page<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">|<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #0000ff\">Select-String<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #8b0000\">&#8216;of (.*?) results&#8217;<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">|<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #0000ff\">%<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">{<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$_<\/span><span style=\"color: #a9a9a9\">.<\/span><span style=\"color: #000000\">Matches<\/span><span style=\"color: #a9a9a9\">[<\/span><span style=\"color: #800080\">0<\/span><span style=\"color: #a9a9a9\">]<\/span><span style=\"color: #a9a9a9\">.<\/span><span style=\"color: #000000\">Groups<\/span><span style=\"color: #a9a9a9\">[<\/span><span style=\"color: #800080\">1<\/span><span style=\"color: #a9a9a9\">]<\/span><span style=\"color: #a9a9a9\">.<\/span><span style=\"color: #000000\">Value<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">}<\/span>                 <br \/><span style=\"color: #000000\">&#160;&#160;&#160; <\/span><span style=\"color: #ff4500\">$total<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">+=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$count<\/span>                 <br \/><span style=\"color: #000000\">&#160;&#160;&#160; <\/span><span style=\"color: #0000ff\">New-Object<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #8a2be2\">PsObject<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000080\">-Property<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">@{<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">Episodes<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$trial<\/span><span style=\"color: #000000\">;<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">Cumulative<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #ff4500\">$total<\/span><span style=\"color: #000000\">;<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">Graph<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #8b0000\">&quot;*&quot;<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">*<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #ff4500\">$count<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">*<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #800080\">.000004<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000000\">)<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000000\">}<\/span>                 <br \/><span style=\"color: #000000\">}<\/span>                 <br \/><span style=\"color: #ff4500\">$items<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #a9a9a9\">|<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #0000ff\">Format-Table<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #8a2be2\">Episodes<\/span><span style=\"color: #a9a9a9\">,<\/span><span style=\"color: #8a2be2\">Cumulative<\/span><span style=\"color: #a9a9a9\">,<\/span><span style=\"color: #8a2be2\">Graph<\/span><span style=\"color: #000000\">&#160;<\/span><span style=\"color: #000080\">-Auto<\/span> <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/blockquote>\n<p>Here\u2019s that script in action:<\/p>\n<blockquote>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/BlogFileStorage\/blogs_msdn\/powershell\/WindowsLiveWriter\/ThePowerScriptingCentennial_AAC9\/image_2.png\"><img decoding=\"async\" style=\"border-right-width: 0px;float: none;border-top-width: 0px;border-bottom-width: 0px;margin-left: auto;border-left-width: 0px;margin-right: auto\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/BlogFileStorage\/blogs_msdn\/powershell\/WindowsLiveWriter\/ThePowerScriptingCentennial_AAC9\/image_thumb.png\" width=\"459\" height=\"484\" \/><\/a> <\/p>\n<\/blockquote>\n<p>Lee Holmes [MSFT]    <br \/>Windows PowerShell Development     <br \/>Microsoft Corporation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>99 podcasts of Pure Power. That\u2019s what the PowerScripting Podcast has been churning out for almost three years! Well, this week is extra special, as you might imagine from the title of this post. On Thursday, they record episode one hundred: a huge milestone by any means. A testament to dedication and passion. Episode #100 [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>99 podcasts of Pure Power. That\u2019s what the PowerScripting Podcast has been churning out for almost three years! Well, this week is extra special, as you might imagine from the title of this post. On Thursday, they record episode one hundred: a huge milestone by any means. A testament to dedication and passion. Episode #100 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=3161"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3161\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=3161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=3161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=3161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}