Recent Items in ISE

Ask your 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.
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
apowershelluser
Posts: 194
Last visit: Fri Mar 22, 2024 4:38 am
Answers: 2

Recent Items in ISE

Post by apowershelluser »

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 5578 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Recent Items in ISE

Post by jvierra »

You would have to clear the MRU registry key which is different for each program.
User avatar
apowershelluser
Posts: 194
Last visit: Fri Mar 22, 2024 4:38 am
Answers: 2

Re: Recent Items in ISE

Post by apowershelluser »

Yes, I know that for most applications but I can't seem to find the one for ISE
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Recent Items in ISE

Post by jvierra »

You will have to search. I doubt that most people even care about this. The MRU only lists the last N files for convenience.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Recent Items in ISE

Post by jvierra »

Have you tried this:

$psise.Options.MruCount
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Recent Items in ISE

Post by jvierra »

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
apowershelluser
Posts: 194
Last visit: Fri Mar 22, 2024 4:38 am
Answers: 2

Re: Recent Items in ISE

Post by apowershelluser »

$psise.Options.MruCount
that equals 10, but I've cleared way more than that lol
User avatar
apowershelluser
Posts: 194
Last visit: Fri Mar 22, 2024 4:38 am
Answers: 2

Re: Recent Items in ISE

Post by apowershelluser »

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"
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked