Classic Shell development was stopped in December 2017. For now the forum remains online as reference, but is read-only. Registration of new users is disabled.
It is currently Sat Sep 13, 2025 2:01 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Apr 24, 2016 7:53 am 
Offline

Joined: Sat Apr 23, 2016 9:33 am
Posts: 2
Greetings,

I'm trying to figure out how to clear out all items on the start menu to "Day 1 Empty" via batch file and/or script and/or PowerShell. OS is Windows 8.1

From researching in these boards I know Classic Shell stores it's pins [via "Pin to Start Menu (Classic Shell)] in this folder...
%APPDATA%\ClassicShell\Pinned\*.*

...and that recent/auto-added items like Notepad and Clarify in my screenshots below are stored here:
%APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*
%APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*



I've tried running running variations of the below batch files, searched the registry, observed 'under the hood' via ProcMon. I've tried quitting/re-launching ClassicStartMenu.exe and Explorer at the end of this batch file and before/after as shown and I can verify in all cases AutomaticDestinations and CustomDestinations are being cleared as intended. (logging off/on as well)

"C:\Program Files\Classic Shell\ClassicStartMenu.exe" -exit
taskkill /f /im explorer.exe
sleep 2

del /F /Q %APPDATA%\ClassicShell\Pinned\*.*
del /F /Q %APPDATA%\Microsoft\Windows\Recent\*
del /F /Q %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*
del /F /Q %APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*

start explorer.exe
sleep 3

"C:\Program Files\Classic Shell\ClassicStartMenu.exe"

And of course I've played with the registry as well, but no matter what I do I've thus far been unable to clear out 'recent' apps: :(



As I'd love to move past this my hope is I've missed something really simple, and so next I'll click Submit to this post and from there eagerly anticipate an 'Oh DUH' moment compliments of this forum. :D

- James


Attachments:
ClassicShell2.png
ClassicShell2.png [ 29.75 KiB | Viewed 13263 times ]
ClassicShell1.png
ClassicShell1.png [ 38.12 KiB | Viewed 13263 times ]
Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 24, 2016 8:03 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
The recent programs are stored in HKCU\Software\IvoSoft\ClassicStartMenu\MRU
The frequent programs are stored in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 24, 2016 11:09 am 
Offline

Joined: Sat Apr 23, 2016 9:33 am
Posts: 2
Ivo wrote:
The recent programs are stored in HKCU\Software\IvoSoft\ClassicStartMenu\MRU
The frequent programs are stored in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist

THANK YOU! :D

I was absolutely aware of .\IvoSoft\ClassicStartMenu\MRU and had cleared it out but that alone had not been enough. I'd also been looking at the UserAssist but it wasn't obvious what was stored in there until your reply sent me looking deeper.


For future viewers of this thread, here's a great primer on UserAssist:
https://windowsexplored.com/2012/02/06/a-quick-glance-at-the-userassist-key-in-windows/
And here's the PowerShell lines I've used to clear out the caches in question. Note that per my batch file above I stop both the ClassicMenu and Explorer processes, run this PowerShell and then restart those processes and it seems to work perfectly:

Remove-Item -Path HKCU:"\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{F4E57C4B-2036-45F0-A9AB-443BCFE33D9F}\Count"
Remove-Item -Path HKCU:"\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{CEBFF5CD-ACE2-4F4F-9178-9926F41749EA}\Count"
Remove-Item -Path HKCU:"\Software\IvoSoft\ClassicStartMenu\MRU"

New-Item -Path HKCU:"\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{F4E57C4B-2036-45F0-A9AB-443BCFE33D9F}" -Name Count
New-Item -Path HKCU:"\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{CEBFF5CD-ACE2-4F4F-9178-9926F41749EA}" -Name Count
New-Item -Path HKCU:"\Software\IvoSoft\ClassicStartMenu" -Name MRU


A better solution would be a PowerShell script that doesn't delete the actual keys but instead just the values within. For my purposes, however, the above is fine.

Thanks again!

James


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 335 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.