Showing posts with label 'root. Show all posts
Showing posts with label 'root. Show all posts

Sunday, October 21, 2018

Can you modify the Windows PowerShell ISE User Interface?

The short answer is 'Yes'.

Windows PowerShell ISE has a Scripting Object Mdel which is hierarchical. The root object is: $psISE object which is an instance of Microsoft.PowerSehll.Host.ISE.ObjectModelRoot class.

Under the 'root' there are many other objects such as; CurrentFile, CurrentPowerShellTab etc.


Here are some $psISE properties:


ISE_0


ISE_1


ISE_2


ISE_3

From the 'root. object I can create a new tab in the Windows PowerShell ISE with a name to display it as shown.

You can create a new tab 'Test' using this code. A new tab 'Test' is added to the UI as shown.:


ISE_04