{"id":75951,"date":"2016-01-05T00:01:00","date_gmt":"2016-01-05T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2016\/01\/05\/a-favorite-powershell-ise-feature-script-browser\/"},"modified":"2019-02-18T09:20:24","modified_gmt":"2019-02-18T16:20:24","slug":"a-favorite-powershell-ise-feature-script-browser","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/a-favorite-powershell-ise-feature-script-browser\/","title":{"rendered":"A Favorite PowerShell ISE Feature: Script Browser"},"content":{"rendered":"<p><b>Summary<\/b>: Sean Kearney shows you how to browse the TechNet Script Repository from the PowerShell ISE.<\/p>\n<p>Honorary Scripting Guy, Sean Kearney, is here today to introduce you to a pretty cool feature that is available in the Windows PowerShell ISE. It&rsquo;s an add-on called the Script Browser.<\/p>\n<p><b>&nbsp; &nbsp;Note<\/b>&nbsp;&nbsp;&nbsp;This is a five-part series that includes the following posts about features in the Windows PowerShell ISE:<\/p>\n<ul>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/scripting\/a-favorite-powershell-ise-feature-script-analyzer\/\" target=\"_blank\">Script Analyzer<\/a><br \/>Download a free tool for examining your script<\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/scripting\/a-favorite-powershell-ise-feature-script-browser\/\" target=\"_blank\">Script Browser<\/a><br \/>Browse the TechNet Script Repository from the Windows PowerShell ISE<\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/scripting\/a-favorite-powershell-ise-feature-module-browser\/\" target=\"_blank\">Module Browser<\/a><br \/>Access modules in the PowerShell Gallery<\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/scripting\/a-favorite-powershell-ise-feature-snippets\/\" target=\"_blank\">Snippets<\/a><br \/>Get sample code in the Windows PowerShell&nbsp;ISE<\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/scripting\/a-favorite-powershell-ise-feature-remote-text-file-editing\/\" target=\"_blank\">Remote Text File Editing<\/a><br \/>Bring file editing to the Windows PowerShell&nbsp;ISE<\/li>\n<\/ul>\n<p>The Script Browser came with my installation yesterday when I dropped in the <a href=\"https:\/\/devblogs.microsoft.com\/scripting\/a-favorite-powershell-ise-feature-script-analyzer\/\">Script Analyzer<\/a>. I referenced its existence, but I didn&rsquo;t show it to you.<\/p>\n<p>After the installation, in the <b>Add-On Tools<\/b> panel, you&rsquo;ll see an option you can click called <b>Script Browser<\/b>:<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/71302.1.PNG\"><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/71302.1.PNG\" alt=\"Image of tabs\" title=\"Image of tabs\" \/><\/a><\/p>\n<p>When you are in this tool, you have the ability to enter your search criteria (the wildcard character is accepted), for example:<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/5164.2.PNG\"><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/5164.2.PNG\" alt=\"Image of menu\" title=\"Image of menu\" \/><\/a><\/p>\n<p>You can sort by criteria including Relevance, Popularity, Release Date, Downloads, Ratings, Title, and Author. In the current example, I am sorting strictly on the popularity of Active Directory scripts in the Repository.<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/8371.3.PNG\"><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/8371.3.PNG\" alt=\"Image of menu\" title=\"Image of menu\" \/><\/a><\/p>\n<p>When I hit ENTER, the Script Browser queries the Repository and present the following results:<\/p>\n<p>If I click a selection, I have the option to download the script (if it is stored in the Repository), or I can simply copy the script into the ISE Script panel.<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/3704.4.PNG\"><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/3704.4.PNG\" alt=\"Image of script\" title=\"Image of script\" \/><\/a><\/p>\n<p>By default, scripts will download into my user profile folder as shown here:<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/3750.5.PNG\"><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/3750.5.PNG\" alt=\"Image of menu\" title=\"Image of menu\" \/><\/a><\/p>\n<p>This location can be chosen and customized by clicking the gear icon from the Script Browser tab.<\/p>\n<p>In the same settings area, you can provide proxy and authentication settings for your firewall, if needed.<\/p>\n<p>I love using this tool to try to find scripts. It&rsquo;s far more convenient than the old process of browse, download, open, edit, play because I can now put scripts directly into my ISE.<\/p>\n<p>Afterwards, I can use the Script Analyzer to at least see if it&rsquo;s somewhat close to good practices in design.<\/p>\n<p>Stop in tomorrow when I&rsquo;ll look at another free tool that will make the Windows PowerShell ISE even more useful to you.<\/p>\n<p>I invite you to follow the Scripting Guys 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 them 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>. See you tomorrow. Until then, always remember that with great PowerShell comes great responsibility.<\/p>\n<p><b>Sean Kearney, <\/b>Honorary Scripting Guy, Cloud and Datacenter Management MVP&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Sean Kearney shows you how to browse the TechNet Script Repository from the PowerShell ISE. Honorary Scripting Guy, Sean Kearney, is here today to introduce you to a pretty cool feature that is available in the Windows PowerShell ISE. It&rsquo;s an add-on called the Script Browser. &nbsp; &nbsp;Note&nbsp;&nbsp;&nbsp;This is a five-part series that includes [&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,661,154,45],"class_list":["post-75951","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-guest-blogger","tag-script-browser","tag-sean-kearney","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Sean Kearney shows you how to browse the TechNet Script Repository from the PowerShell ISE. Honorary Scripting Guy, Sean Kearney, is here today to introduce you to a pretty cool feature that is available in the Windows PowerShell ISE. It&rsquo;s an add-on called the Script Browser. &nbsp; &nbsp;Note&nbsp;&nbsp;&nbsp;This is a five-part series that includes [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/75951","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=75951"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/75951\/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=75951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=75951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=75951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}