Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Powershell ISE store tabs when it crashes?

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.

like image 546
EGr Avatar asked Mar 10 '15 18:03

EGr


People also ask

What is replacing PowerShell ISE?

Users looking for replacement for the ISE should use Visual Studio Code with the PowerShell Extension.

Is PowerShell ISE going away?

The PowerShell ISE is no longer in active feature development. As a shipping component of Windows, it continues to be officially supported for security and high-priority servicing fixes.

Whats the difference between PowerShell and PowerShell ISE?

The principal difference between the two is convenience. PowerShell is a simpler and more straightforward scripting and execution environment, while the ISE provides more flexible and forgiving editing and execution features. PowerShell can be a good platform for simple tasks where actions are clear.

How do I get tabs in PowerShell?

On the File menu, click New PowerShell Tab. The new PowerShell tab always opens as the active window. PowerShell tabs are incrementally numbered in the order that they are opened.


2 Answers

This will always give you the correct path:

(Resolve-Path "$env:LOCALAPPDATA\Microsoft_Corporation\powershell_ise*").Path
like image 138
user9371141 Avatar answered Nov 15 '22 16:11

user9371141


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

like image 29
Mathias R. Jessen Avatar answered Nov 15 '22 17:11

Mathias R. Jessen