{"id":76383,"date":"2016-02-03T00:01:00","date_gmt":"2016-02-03T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2016\/02\/03\/install-the-powershell-ise-preview-from-the-powershell-gallery\/"},"modified":"2019-02-18T09:20:01","modified_gmt":"2019-02-18T16:20:01","slug":"install-the-powershell-ise-preview-from-the-powershell-gallery","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/install-the-powershell-ise-preview-from-the-powershell-gallery\/","title":{"rendered":"Install the PowerShell ISE Preview from the PowerShell Gallery"},"content":{"rendered":"<p><b>Summary<\/b>: Learn how to install the Windows PowerShell ISE Preview edition from the PowerShell Gallery to Windows PowerShell 5.0 by using a one-line command.<\/p>\n<p>One of the way cool things is that the Windows PowerShell ISE is released to the <a href=\"https:\/\/www.powershellgallery.com\/\" target=\"_blank\">PowerShell Gallery<\/a>. &ldquo;PowerShell Gallery?&rdquo; you might ask. Yeah, the PowerShell Gallery.<\/p>\n<p>Although this version of the PowerShell ISE is currently still under <i>limited preview<\/i>, this does not mean that you can&rsquo;t use it. In fact, you should be using it. I go to the PowerShell Gallery page, and type ISE in the Search box, and what comes back is a bunch of stuff related to the Windows PowerShell ISE:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-01.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-01.png\" alt=\"Image of menu\" title=\"Image of menu\" \/><\/a><\/p>\n<p>I am interested in the PowerShell ISE-Preview, so I click it and it brings up the PowerShell ISE Preview page. But that page does not really tell me very much about the PowerShell ISE&mdash;as to why I would be interested in it, or even what it might do. It does tell me that it requires Windows PowerShell&nbsp;5.0, and that this is version 5.1.1, and that two days ago there was a version 5.1.0.1, so I know that it is actively being developed.<\/p>\n<p>There are also two functions listed:<\/p>\n<ul>\n<li>Start-ISEPreview<\/li>\n<li>Install-ISEPreviewShortcut<\/li>\n<\/ul>\n<p>Here is the PowerShell Gallery page for the ISE Preview 5.1.1:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-02.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-02.png\" alt=\"Image of menu\" title=\"Image of menu\" \/><\/a><\/p>\n<h2>Use Find-Module<\/h2>\n<p>Because I am using Windows PowerShell&nbsp;5.0 in Windows 10, I already have Windows PowerShell cmdlets that let me interact with the PowerShell Gallery. In fact, using Windows PowerShell is the best way to interact with the Gallery, because as we just saw, the web pages do not seem to contain tons of information. The Windows PowerShell team blog has much more information about it in their initial announcement: <a href=\"https:\/\/blogs.msdn.microsoft.com\/powershell\/2016\/01\/20\/introducing-the-windows-powershell-ise-preview\/\">Introducing the Windows PowerShell ISE Preview<\/a>.<\/p>\n<p>I decided to use <b>Find-Module<\/b> to find the ISE-related modules. I type the following command:<\/p>\n<p style=\"margin-left:30px\">Find-Module *ise*<\/p>\n<p>The Windows PowerShell console tells me that I need a NuGet provider. It really doesn&rsquo;t matter what that is&mdash;I need it so that I can interact with the PowerShell repository. I can say <b>Yes<\/b>, and it automatically installs and imports the provider. Cool. Here is the console:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-03.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-03.png\" alt=\"Image of command output\" title=\"Image of command output\" \/><\/a><\/p>\n<p>Now that is cool. It downloaded, installed, and imported the provider, and then ran my query, which it remembered. Sweet! this is shown here:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-04.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-04.png\" alt=\"Image of command output\" title=\"Image of command output\" \/><\/a><\/p>\n<p>Now all I have to do is to run <b>Install-Module<\/b>. A bummer thing is that Tab expansion doesn&rsquo;t seem to work, and I feel kind of abused having to type a really long name like PowerShellISE-preview. But hey, if it really annoyed me that much, I could have copied the name or even used a wildcard character. I install the PowerShell ISE Preview in my current user scope. Here is the command:<\/p>\n<p style=\"margin-left:30px\">Install-Module -Name PowerShellISE-preview -Scope CurrentUser<\/p>\n<p>It tells me that I am installing from an untrusted repository. It also says that I can add the PowerShell Gallery as a trusted repository by using <b>Set-PSRepository<\/b>. I will do that later, but for now, I am going to say <b>Yes<\/b> and do the installation. A progress bar appears, and that is it. Here is the Windows PowerShell console at this point:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-06.png\" alt=\"Image of command output\" title=\"Image of command output\" \/><\/p>\n<h2>Launch the PowerShell ISE Preview<\/h2>\n<p>To launch the Windows PowerShell ISE Preview edition, I type <b>isep<\/b> (ise preview) at the Windows PowerShell console:<\/p>\n<p style=\"margin-left:30px\">PS C:\\&gt; isep<\/p>\n<p>The ISE Preview launches and it looks like this:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-07.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-2-3-16-07.png\" alt=\"Image of menu\" title=\"Image of menu\" \/><\/a><\/p>\n<p>Cool. Join me tomorrow when I will begin to explore the preview edition of the Windows PowerShell ISE.<\/p>\n<p>I 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=\"mailto: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>. Also check out my <a href=\"https:\/\/blogs.technet.microsoft.com\/msoms\/\" target=\"_blank\">Microsoft Operations Management Suite Blog<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p><b>Ed Wilson, Microsoft Scripting Guy<\/b>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Learn how to install the Windows PowerShell ISE Preview edition from the PowerShell Gallery to Windows PowerShell 5.0 by using a one-line command. One of the way cool things is that the Windows PowerShell ISE is released to the PowerShell Gallery. &ldquo;PowerShell Gallery?&rdquo; you might ask. Yeah, the PowerShell Gallery. Although this version of [&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":[553,600,665,3,45],"class_list":["post-76383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-ise","tag-powershell-5-0","tag-powershell-gallery","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Learn how to install the Windows PowerShell ISE Preview edition from the PowerShell Gallery to Windows PowerShell 5.0 by using a one-line command. One of the way cool things is that the Windows PowerShell ISE is released to the PowerShell Gallery. &ldquo;PowerShell Gallery?&rdquo; you might ask. Yeah, the PowerShell Gallery. Although this version of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/76383","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=76383"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/76383\/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=76383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=76383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=76383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}