Recent Items in ISE

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
JohnTitor
Posts: 153
Joined: Fri Nov 17, 2017 8:49 pm

Recent Items in ISE

Post by JohnTitor » Tue Jun 25, 2019 11:54 am

I know this is more of an OS question but I can't find the path searching the web. How can I clear the context recent items
ISE.png
ISE.png (19.02 KiB) Viewed 1960 times

User avatar
jvierra
Posts: 13725
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Recent Items in ISE

Post by jvierra » Tue Jun 25, 2019 11:57 am

You would have to clear the MRU registry key which is different for each program.

User avatar
JohnTitor
Posts: 153
Joined: Fri Nov 17, 2017 8:49 pm

Re: Recent Items in ISE

Post by JohnTitor » Tue Jun 25, 2019 12:23 pm

Yes, I know that for most applications but I can't seem to find the one for ISE

User avatar
jvierra
Posts: 13725
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Recent Items in ISE

Post by jvierra » Tue Jun 25, 2019 12:26 pm

You will have to search. I doubt that most people even care about this. The MRU only lists the last N files for convenience.

User avatar
jvierra
Posts: 13725
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Recent Items in ISE

Post by jvierra » Tue Jun 25, 2019 12:28 pm

Have you tried this:

$psise.Options.MruCount

User avatar
jvierra
Posts: 13725
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Recent Items in ISE

Post by jvierra » Tue Jun 25, 2019 12:40 pm

The correct name for these aer "jump lists" and they can only be cleared by clearing all jump lists.

The data for individual jump lists is stored here:

$env:USERPROFILE\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations

User avatar
JohnTitor
Posts: 153
Joined: Fri Nov 17, 2017 8:49 pm

Re: Recent Items in ISE

Post by JohnTitor » Tue Jun 25, 2019 12:48 pm

$psise.Options.MruCount
that equals 10, but I've cleared way more than that lol

User avatar
JohnTitor
Posts: 153
Joined: Fri Nov 17, 2017 8:49 pm

Re: Recent Items in ISE

Post by JohnTitor » Tue Jun 25, 2019 1:00 pm

Looks like I had to turn it off, then back on and it cleared it

Settings > Personalization > Start > "Show recently opened items in Jump Lists on Start or the taskbar"

Locked