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.
Asked
Active
Viewed 2.2k times
3 Answers
12
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

Mathias R. Jessen
- 157,619
- 12
- 148
- 206
5
This will always give you the correct path:
(Resolve-Path "$env:LOCALAPPDATA\Microsoft_Corporation\powershell_ise*").Path

Mathias R. Jessen
- 157,619
- 12
- 148
- 206

user9371141
- 51
- 1
- 1
0
It is slightly different for lower versions but you can still get there with Mathias' location.
%LOCALAPPDATA%\Microsoft_Corporation\powershell_ise.exe_StrongName_lw2v2vm3wmtzzpebq33gybmeoxukb04w
Should get you to the parent folder every time, regardless of the version.
Note: I was going to add this as a comment but I can't yet...

Marcello Miorelli
- 3,368
- 4
- 44
- 67

DBADon
- 449
- 5
- 9