February 6th, 2016

PowerTip: List all scripts open in Windows PowerShell ISE

Doctor Scripto
Scripter

Summary: List all the scripts that are open in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I find which scripts are open in the Windows PowerShell ISE and if they are saved?

Hey, Scripting Guy! Answer Use the ISE object model and display the Files collection from the PowerShellTabs collection:

$psISE.PowerShellTabs.Files

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.