{"id":482,"date":"2014-10-25T00:01:00","date_gmt":"2014-10-25T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2014\/10\/25\/weekend-scripter-team-talk-about-why-to-upgrade-to-powershell-4-0\/"},"modified":"2014-10-25T00:01:00","modified_gmt":"2014-10-25T00:01:00","slug":"weekend-scripter-team-talk-about-why-to-upgrade-to-powershell-4-0","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/weekend-scripter-team-talk-about-why-to-upgrade-to-powershell-4-0\/","title":{"rendered":"Weekend Scripter: Team Talk About Why to Upgrade to PowerShell 4.0"},"content":{"rendered":"<p><b style=\"font-size:12px\">Summary<\/b><span style=\"font-size:12px\">: Windows PowerShell program manager, John Slack, talks about upgrading to Windows PowerShell 4.0.<\/span>\nMicrosoft Scripting Guy, Ed Wilson, is here. Today we have John Slack, a program manager in the Windows PowerShell team as our guest blogger&#8230;\nDo you use the version of Windows PowerShell that ships with your operating system? Do you wonder if you should make the jump and install <a href=\"http:\/\/blogs.msdn.com\/b\/powershell\/archive\/2013\/10\/25\/windows-management-framework-4-0-is-now-available.aspx\" target=\"_blank\">Windows PowerShell&nbsp;4.0<\/a> or try out <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=44070\" target=\"_blank\">Windows PowerShell&nbsp;5.0 Preview<\/a>?\nHere&rsquo;s the short answer: I think you should.\nWant more of an explanation? At a high level, I see the following benefits to updating:<\/p>\n<ul>\n<li>New features make your life simpler.<\/li>\n<li>You stay ahead of the curve by learning about new features.<\/li>\n<li>Your feedback makes Windows PowerShell better.<\/li>\n<\/ul>\n<h2>New features make your life simpler<\/h2>\n<p>Each successive version of Windows PowerShell adds features and improves existing functionalities. These features are designed to help you get your job done faster and more effectively. Jumping from Windows PowerShell&nbsp;2.0 to Windows PowerShell&nbsp;4.0 can give you huge benefits. The list of improvements is significant, and it can&rsquo;t really be condensed into a single blog post, but I&rsquo;ll try to detail a few representative samples.<\/p>\n<ul>\n<li><b>Desired State Configuration (DSC)<\/b><br \/> If you need to configure machines running Windows in a DevOps friendly way, DSC (introduced in Windows PowerShell&nbsp;4.0) is a significant step up from complicated and fragile configuration scripts. For more information, see <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dn313042.aspx\">about_DesiredStateConfiguration<\/a>.<\/li>\n<li><b>Windows PowerShell remoting features<\/b><br \/> If you need to managing remote machines, the Disconnected Sessions feature (introduced in Windows PowerShell&nbsp;3.0) can make your life much easier. The remote debugging features in Windows PowerShell&nbsp;4.0 can also help. For more information, see <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/jj149006.aspx\" target=\"_blank\">about_Remote_Disconnected_Sessions<\/a>.<\/li>\n<li><b>Performance improvements<\/b><br \/> The&nbsp;parser in Windows PowerShell&nbsp;3.0 significantly improved performance.<\/li>\n<li><b>Feedback<\/b><br \/> Little bugs in Windows PowerShell may have been fixed in the latest version. If they haven&rsquo;t, we need your input, so report them on the <a href=\"http:\/\/connect.microsoft.com\/PowerShell\" target=\"_blank\">Windows PowerShell Customer Connection<\/a> site.<\/li>\n<\/ul>\n<p>Best of all, these improvements are additive. The scripts you wrote in Windows PowerShell 2.0 should continue to work in Windows PowerShell 4.0.\nFor more information about improvements, see <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh857339.aspx\" target=\"_blank\">What&#8217;s New In Windows PowerShell<\/a>.<\/p>\n<p style=\"margin-left:30px\"><b>Note<\/b>&nbsp;&nbsp;I&rsquo;m not suggesting that you should upgrade everything without any testing. I&rsquo;m simply saying that backwards compatibility is a huge priority for the team, so things should go fairly smoothly.<\/p>\n<h2>You stay ahead of the curve<\/h2>\n<p>Let&rsquo;s say you can&rsquo;t convince your management team that all of these improvements are worth it. I still think it&rsquo;s worth your while to upgrade one or two machines to the latest version of Windows PowerShell. By doing so:<\/p>\n<ul>\n<li>You can come up to speed on the new features without impacting your production environment.<\/li>\n<li>You continue to grow your Windows PowerShell skills.<\/li>\n<li>When you do upgrade to Windows Server&nbsp;2012&nbsp;R2 or Windows&nbsp;10, you&rsquo;ll be ready to take advantage of the new features.<\/li>\n<\/ul>\n<h2>Your feedback makes it better<\/h2>\n<p>If you do upgrade to the latest version of Windows PowerShell, you have a unique opportunity to improve it for everyone&mdash;especially if you&rsquo;re using the latest WMF Preview. If you&rsquo;re trying out new features and you think that they can be improved, please provide feedback via the <a href=\"http:\/\/connect.microsoft.com\/PowerShell\" target=\"_blank\">Windows PowerShell Customer Connection<\/a> site. Well thought out feedback can shape the priorities and the direction of the product.\nTo summarize, upgrading to the latest version of Windows PowerShell is a good idea because:<\/p>\n<ul>\n<li>Newer versions have productivity-boosting features.<\/li>\n<li>You continue to grow your Windows PowerShell skills.<\/li>\n<li>Your feedback shapes the future direction of Windows PowerShell.<\/li>\n<\/ul>\n<p>Thank you!\n~John\nThanks, John, for taking the time to share with our readers.\nI 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=\"http:\/\/blogs.technet.commailto: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><span style=\"font-size:12px\">&nbsp;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Windows PowerShell program manager, John Slack, talks about upgrading to Windows PowerShell 4.0. Microsoft Scripting Guy, Ed Wilson, is here. Today we have John Slack, a program manager in the Windows PowerShell team as our guest blogger&#8230; Do you use the version of Windows PowerShell that ships with your operating system? Do you wonder [&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":[56,545,462,3,541,61,45],"class_list":["post-482","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-guest-blogger","tag-john-slack","tag-powershell-4-0","tag-scripting-guy","tag-upgrade","tag-weekend-scripter","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Windows PowerShell program manager, John Slack, talks about upgrading to Windows PowerShell 4.0. Microsoft Scripting Guy, Ed Wilson, is here. Today we have John Slack, a program manager in the Windows PowerShell team as our guest blogger&#8230; Do you use the version of Windows PowerShell that ships with your operating system? Do you wonder [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/482","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=482"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/482\/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=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}