Showing archive results for February 2016

Feb 7, 2016
Post comments count0
Post likes count0

PowerTip: Hide a PowerShell ISE add-on

Doctor Scripto

Summary: Learn how to programmatically hide a Windows PowerShell ISE add-on.  How can I use code to hide one of the Windows PowerShell ISE add-ons?  Use the Windows PowerShell ISE object model, and set the IsVisible property of the add-on to False, for example: $psISE.PowerShellTabs.VerticalAddOnTools.Item(0).isvisible = $false  

Scripting Guy!Windows PowerShellPowerTip
Feb 7, 2016
Post comments count0
Post likes count0

PowerTip: Display Windows PowerShell ISE add-ons

Doctor Scripto

Summary: Display the Windows PowerShell ISE add-ons that are available.  How can I programmatically display the Windows PowerShell ISE add-ons that are available and show their status?  Use the Windows PowerShell ISE object model to display the VerticalAddonTools collection from the PowerShellTabs collection: $psISE.PowerShellTabs.VerticalAddOnToo...

Scripting Guy!Windows PowerShellPowerTip
Feb 6, 2016
Post comments count0
Post likes count0

PowerTip: List all scripts open in Windows PowerShell ISE

Doctor Scripto

Summary: List all the scripts that are open in the Windows PowerShell ISE.  How can I find which scripts are open in the Windows PowerShell ISE and if they are saved?  Use the ISE object model and display the Files collection from the PowerShellTabs collection: $psISE.PowerShellTabs.Files

Scripting Guy!Windows PowerShellPowerTip
Feb 6, 2016
Post comments count0
Post likes count0

PowerTip: Open a script in PowerShell ISE

Doctor Scripto

Summary: Automatically open a script in the Windows PowerShell ISE.  How can I automatically open a script in the Windows PowerShell ISE from within a script?  Use the Windows PowerShell ISE automation model, and use the Add method for the Files collection on the current PowerShell tab, for example: $psISE.CurrentPowerShellTab.Files.Add("C:\fso\ba...

Scripting Guy!Windows PowerShellPowerTip
Feb 5, 2016
Post comments count0
Post likes count0

PowerTip: Update a PowerShell module

Doctor Scripto

Summary: Learn how to update an installed Windows PowerShell module.  I used Install-Module to install a Windows PowerShell module, but how can I update it?  Use the Update-Module cmdlet, for example: Here are a couple of other examples: find-module *ise-preview | Update-Module Update-Module *ise-preview

Scripting Guy!Windows PowerShellPowerTip