{"id":6866,"date":"2014-01-08T00:00:45","date_gmt":"2014-01-08T00:00:45","guid":{"rendered":"http:\/\/craftydba.com\/?p=6866"},"modified":"2024-02-17T14:50:52","modified_gmt":"2024-02-17T14:50:52","slug":"installing-windows-powershell","status":"publish","type":"post","link":"https:\/\/craftydba.com\/?p=6866","title":{"rendered":"Installing Windows PowerShell"},"content":{"rendered":"<p>PowerShell comes installed as part of the operating system in Windows 7.  I checked my system which is a base install of Windows 7 SP1.  <\/p>\n<p>The ISE or integrated scripting envrionment is the place to code, debug and launch scripts.  <\/p>\n<p>To open the development environment, type <span style=\"color: #0000ff\">powershell_ise<\/span> at the run or command prompt to launch the application.  <\/p>\n<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/launch-powershell-ise.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/launch-powershell-ise-300x166.jpg\" alt=\"launch-powershell-ise\" width=\"300\" height=\"166\" class=\"aligncenter size-medium wp-image-6873\" srcset=\"https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/launch-powershell-ise-300x166.jpg 300w, https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/launch-powershell-ise.jpg 655w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>At this point, you have to decide if you can live with the current version or install the new version.<\/p>\n<p>There are two commands that can be used to find the version.  The <span style=\"color: #0000ff\">Get-Host<\/span> command let shows not only the version but other details.  The <span style=\"color: #0000ff\">$PSVersionTable.psversion<\/span> is a runtime variable for just version information.<\/p>\n<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/get-powershell-version.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/get-powershell-version-300x253.jpg\" alt=\"get-powershell-version\" width=\"300\" height=\"253\" class=\"aligncenter size-medium wp-image-6877\" srcset=\"https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/get-powershell-version-300x253.jpg 300w, https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/get-powershell-version.jpg 749w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I have decided to stick with version 2.0 which comes with Windows 7.  However, if you want to upgrade to version 3.0, check out these installation instructions on <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/hh847837.aspx\">MSDN<\/a>.<\/p>\n<p>Here is the <a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2014\/01\/get-powershell-version.ps1_.txt\">script<\/a> to determine the PowerShell version.  So far, we have talked about executing scripts from the PowerShell IDE.  Next time, we will talk about running scripts from the command line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell comes installed as part of the operating system in Windows 7. I checked my system which is a base install of Windows 7 SP1. The ISE or integrated scripting envrionment is the place to code, debug and launch scripts. To open the development environment, type powershell_ise at the run or command prompt to launch the application. At this point, you have to decide if you can live with the current version or install the new version. There are two commands that can be used to find the version. The&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6869,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[1016,1014,1015,1017,1018,15,1019],"class_list":["post-6866","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other","tag-psversiontable","tag-developer","tag-get-host","tag-installing-powershell","tag-ise","tag-john-f-miner-iii","tag-powershell_ise"],"_links":{"self":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/posts\/6866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6866"}],"version-history":[{"count":1,"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/posts\/6866\/revisions"}],"predecessor-version":[{"id":8845,"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/posts\/6866\/revisions\/8845"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/media\/6869"}],"wp:attachment":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}