Where does Powershell ISE store tabs when it crashes?

EGr picture EGr · Mar 10, 2015 · Viewed 13.1k times · Source

My Powershell ISE is crashing upon being launched; and I believe it is due to a tab/file that is being loaded when ISE returns from being exited incorrectly. As a result, I'm currently unable to launch ISE.. I'm looking for the file/location where Powershell ISE stores the tabs/files that are currently opened so that I can delete it and make it start without loading anything. I am able to start it as another user with no issues.

Answer

Mathias R. Jessen picture Mathias R. Jessen · Mar 10, 2015

Using Process Monitor, I've found that the ISE stores and loads its recovered files from:

%LOCALAPPDATA%\Microsoft_Corporation\powershell_ise.exe_StrongName_lw2v2vm3wmtzzpebq33gybmeoxukb04w\3.0.0.0\AutoSaveFiles

Holds true for both Windows 7 with PS 3.0, Windows 8.1 with PS 4.0 and Windows 10 with PS 5.1