Tip: How to break apart Script Browser & Script Analyzer


Script Browser and Script Analyzer are bundled together in one setup.   After the installation, when you launch Windows PowerShell ISE, both Script Browser and Script Analyzer are loaded.  

image

 

In this blog article, you will learn the trick to solely load Script Browser or Script Analyzer.

First, you need to open your ‘My Documents’, and find the ‘WindowsPowerShell’ folder.   In the folder, you should see a file called ‘Microsoft.PowerShellISE_profile.ps1’. 

image

 

Please open the file, and find the following section. 

#Script Browser Begin
Add-Type -Path 'C:\Program Files (x86)\Microsoft Corporation\Microsoft Script Browser\System.Windows.Interactivity.dll'
Add-Type -Path 'C:\Program Files (x86)\Microsoft Corporation\Microsoft Script Browser\ScriptBrowser.dll'
Add-Type -Path 'C:\Program Files (x86)\Microsoft Corporation\Microsoft Script Browser\BestPractices.dll'
$scriptBrowser = $psISE.CurrentPowerShellTab.VerticalAddOnTools.Add('Script Browser', [ScriptExplorer.Views.MainView], $true)
$scriptAnalyzer = $psISE.CurrentPowerShellTab.VerticalAddOnTools.Add('Script Analyzer', [BestPractices.Views.BestPracticesView], $true)
$psISE.CurrentPowerShellTab.VisibleVerticalAddOnTools.SelectedAddOnTool = $scriptBrowser
#Script Browser End

 

If you only want to load Script Browser, please comment or remove the following two lines:

Add-Type -Path 'C:\Program Files (x86)\Microsoft Corporation\Microsoft Script Browser\BestPractices.dll'
$scriptAnalyzer = $psISE.CurrentPowerShellTab.VerticalAddOnTools.Add('Script Analyzer', [BestPractices.Views.BestPracticesView], $true)

 

If you solely want to load Script Analyzer, please comment or remove these three lines, and restart Windows PowerShell.

Add-Type -Path 'C:\Program Files (x86)\Microsoft Corporation\Microsoft Script Browser\ScriptBrowser.dll'
$scriptBrowser = $psISE.CurrentPowerShellTab.VerticalAddOnTools.Add('Script Browser', [ScriptExplorer.Views.MainView], $true)
$psISE.CurrentPowerShellTab.VisibleVerticalAddOnTools.SelectedAddOnTool = $scriptBrowser

Comments (3)

  1. Ronald says:

    Thank you for the tip!

  2. aw says:

    hai, I just want to tell you that I am just very new to blogs and seriously loved this website. More than likely I’m planning to bookmark your blog post .
    You amazingly come with really good posts. Thanks a lot for sharing your blog Microsoft.
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT.%20Brantas%20Abipraya
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20Jasa%20Marga
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20Bukit%20Asam
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20Sarana%20Multigriya%20Finansial
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20Wijaya%20Karya%20Beton
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT.%20Kereta%20Api%20Indonesia
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Solo
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20Danareksa
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Perusahaan%20umum%20Jaminan%20Kredit%20Indonesia%20Jamkrindo
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20Reasuransi%20Internasional%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20Lion%20Super%20Indo
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT.%20Djarum%20Indonesia%20Tbk
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20BPJS%20Ketenagakerjaan
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Staf%20LKPP
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20BUMN
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Terbaru
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20SMA
    http://www.lokerjobindo.com
    http://www.yacinta.com
    http://www.kerjabumn.com
    http://www.wisatasia.id/search/label/Wisata-Indonesia

    http://www.wisatasia.id
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PT%20PAL%20Indonesia%20Persero

Skip to main content