{"id":282,"date":"2018-01-11T19:04:19","date_gmt":"2018-01-12T01:04:19","guid":{"rendered":"http:\/\/draith.com\/?p=282"},"modified":"2018-01-11T19:04:19","modified_gmt":"2018-01-12T01:04:19","slug":"powershell-core-get-it-now","status":"publish","type":"post","link":"http:\/\/draith.azurewebsites.net\/?p=282","title":{"rendered":"PowerShell Core &#8211; Get it now!!"},"content":{"rendered":"<p><a href=\"https:\/\/blogs.msdn.microsoft.com\/powershell\/2018\/01\/10\/powershell-core-6-0-generally-available-ga-and-supported\/\">PowerShell Core 6.0 was released yesterday!<\/a>  This is a huge step forward for PowerShell as it becomes an even stronger cross-platform powerhouse.  In addition to the public announcement, Jeffery Snover and the PowerShell team did an <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/PowerShell-AMA\/bd-p\/PowerShellAMA\">AMA<\/a>!<br \/>\nHere&#8217;s a quick primer:<br \/>\n<a href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\">Get it here.<\/a><\/p>\n<p>Windows PowerShell and Powershell Core are different products and no, Windows PowerShell isn&#8217;t going away!  There is a caveat, though &#8211; no new features for Windows PowerShell &#8211; Core is the future!<br \/>\nWindows PowerShell is built on full .Net whereas Core is built on .Net Core.  In order to work on .Net Core and consequently be cross-platform, so things are either gone or being deprecated.  Things like Workflows, and WMI cmdlets are a couple that will not work with Core.  <\/p>\n<p>Check out this OS List!:<br \/>\nWindows 7, 8.1, and 10<br \/>\nWindows Server 2008 R2, 2012 R2, 2016<br \/>\nWindows Server Semi-Annual Channel<br \/>\nUbuntu 14.04, 16.04, and 17.04<br \/>\nDebian 8.7+, and 9<br \/>\nCentOS 7<br \/>\nRed Hat Enterprise Linux 7<br \/>\nOpenSUSE 42.2<br \/>\nFedora 25, 26<br \/>\nmacOS 10.12+<br \/>\nArch Linux*<br \/>\nKali Linux*<br \/>\nAppImage*<br \/>\nWindows on ARM32\/ARM64**<br \/>\nRaspbian (Stretch)**<br \/>\n* = Community Support Only;** = Experimental<\/p>\n<p>What does this new PowerShell look like?  I grabbed the MSI (will do posts on Linux and MacOS later!) and took the defaults:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/draith.com\/wp-content\/uploads\/2018\/01\/CoreInstall.png\" alt=\"\" width=\"786\" height=\"608\" class=\"alignnone size-full wp-image-284\" srcset=\"\/wp-content\/uploads\/2018\/01\/CoreInstall.png 786w, \/wp-content\/uploads\/2018\/01\/CoreInstall-300x232.png 300w, \/wp-content\/uploads\/2018\/01\/CoreInstall-768x594.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Super easy.  Now you can launch a console window from the start menu, but if you browse to your install directory from a command line you get your first surprise!<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/draith.com\/wp-content\/uploads\/2018\/01\/CoreDirectory.png\" alt=\"\" width=\"1370\" height=\"782\" class=\"alignnone size-full wp-image-285\" srcset=\"\/wp-content\/uploads\/2018\/01\/CoreDirectory.png 1370w, \/wp-content\/uploads\/2018\/01\/CoreDirectory-300x171.png 300w, \/wp-content\/uploads\/2018\/01\/CoreDirectory-1024x585.png 1024w, \/wp-content\/uploads\/2018\/01\/CoreDirectory-768x438.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>That&#8217;s right!  No powershell.exe!  PowerShell.exe has been renamed to pwsh.exe.  Start it, and check out your version &#8211; $PSVersionTable:<br \/>\nName                           Value<br \/>\n&#8212;-                           &#8212;&#8211;<br \/>\nPSVersion                      6.0.0<br \/>\nPSEdition                      Core<br \/>\nGitCommitId                    v6.0.0<br \/>\nOS                             Microsoft Windows 10.0.16299<br \/>\nPlatform                       Win32NT<br \/>\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0&#8230;}<br \/>\nPSRemotingProtocolVersion      2.3<br \/>\nSerializationVersion           1.1.0.1<br \/>\nWSManStackVersion              3.0<\/p>\n<p>If you have read my blog before, you know I like my <a href=\"http:\/\/draith.com\/?p=253\">customized prompt and profile<\/a>.  Core has a profile just like Windows PowerShell &#8211; located here on a typical Windows machine: <strong>\\Documents\\PowerShell\\Microsoft.PowerShell_profile.ps1 <\/strong> Time to make Core feel like home again:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/draith.com\/wp-content\/uploads\/2018\/01\/CoreNewProfile.png\" alt=\"\" width=\"664\" height=\"367\" class=\"alignnone size-full wp-image-290\" srcset=\"\/wp-content\/uploads\/2018\/01\/CoreNewProfile.png 664w, \/wp-content\/uploads\/2018\/01\/CoreNewProfile-300x166.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Yep &#8211; that&#8217;s better.  There is a ton of fun stuff to do now &#8211; cross platform remote scripting is going to be a focus on some upcoming posts.  Stay tuned!  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell Core 6.0 was released yesterday! This is a huge step forward for PowerShell as it becomes an even stronger cross-platform powerhouse. In addition to the public announcement, Jeffery Snover and the PowerShell team did an AMA! Here&#8217;s a quick primer: Get it here. Windows PowerShell and Powershell Core are different products and no, Windows &hellip; <a href=\"http:\/\/draith.azurewebsites.net\/?p=282\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PowerShell Core &#8211; Get it now!!&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-282","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=282"}],"version-history":[{"count":0,"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts\/282\/revisions"}],"wp:attachment":[{"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/draith.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}