{"id":6181,"date":"2008-05-14T09:19:00","date_gmt":"2008-05-14T09:19:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2008\/05\/14\/doug-finkes-amazing-7-minute-c-powershell-demo\/"},"modified":"2019-02-18T13:15:56","modified_gmt":"2019-02-18T20:15:56","slug":"doug-finkes-amazing-7-minute-c-powershell-demo","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/doug-finkes-amazing-7-minute-c-powershell-demo\/","title":{"rendered":"Doug Finke&#039;s Amazing 7 Minute  C# =&#062; PowerShell Demo"},"content":{"rendered":"<p>Doug Finke has just posted a blog entry <a class=\"\" href=\"http:\/\/dougfinke.com\/blog\/?p=414\">HERE<\/a> with an awesome 7 minute video demo <a class=\"\" href=\"http:\/\/dougfinke.com\/video\/CSharpToPowerShell..html\">HERE.<\/a>&nbsp; I HIGHLY recommend this as a great use of 7 minutes of your life (or as Doug points out, you can type Ctrl-Shift-G to speed it up and it will be a great use of 4-5 minutes of your life \ud83d\ude42 )<\/p>\n<p>In the demo, he starts out writing and running some C# code. He then takes advantage of the new PowerShell V2 feature Add-Type to run this code from a PowerShell script.&nbsp; Then, step by step, he transform the original C# code into PowerShell and ends up with a single line of PowerShell.&nbsp; Each step produces a running PowerShell script and it nicely illustrates what I love about PowerShell &#8211; how the language carves away all the syntatics crap and allows you to focus your thoughts and energies on WHAT you want to do.<\/p>\n<p>&nbsp;Very nicely done Doug.&nbsp; What a great way to start the day.<\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows Management Partner Architect<br \/>Visit the Windows PowerShell Team blog at:&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:&nbsp; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Doug Finke has just posted a blog entry HERE with an awesome 7 minute video demo HERE.&nbsp; I HIGHLY recommend this as a great use of 7 minutes of your life (or as Doug points out, you can type Ctrl-Shift-G to speed it up and it will be a great use of 4-5 minutes of [&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-6181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>Doug Finke has just posted a blog entry HERE with an awesome 7 minute video demo HERE.&nbsp; I HIGHLY recommend this as a great use of 7 minutes of your life (or as Doug points out, you can type Ctrl-Shift-G to speed it up and it will be a great use of 4-5 minutes of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/6181","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=6181"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/6181\/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=6181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=6181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=6181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}