Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-ClearStart clears start menu not once, but on every relogin #185

Open
Nikolai2038 opened this issue Jan 24, 2025 · 5 comments
Open

-ClearStart clears start menu not once, but on every relogin #185

Nikolai2038 opened this issue Jan 24, 2025 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Nikolai2038
Copy link

Describe the bug
I don't know if this is intended, but when I apply -ClearStart option, the start menu clears start menu not once as expected, but also on every my relogin to the system. I used these scripts for quite a while and don't remember if this was an issue before, or this is how this option works now.

I think the desired start2.bin file format/something in it has been changed - if I delete it, and then somehow update start menu - new file's size differ (I renamed start2.bin to start2.bin.err here before making any changes to start menu):

Image

When using start2.bin from this repository, I think the Windows will fail to load it and will fail to save it - so it will look like start menu has been reset each login.

Also, I noticed that the .bkp file has different size too. I tried it and it also does not work. I think this is because on that machine I applied both -ClearStart and -ClearStartAllUsers, but I am not sure.

To Reproduce
Steps to reproduce the behavior:

  1. Install fresh Windows 11;
  2. Run script with just -Silent -ClearStart options;
  3. Wait for script to complete - no errors;
  4. Check that start menu has been cleared;
  5. Pin some apps in start menu;
  6. Log out;
  7. Log back in.

Expected behavior
Start menu contains apps, that I pinned after script clears all other for me.

Current behavior
Start menu is empty again.

Additional context
To resolve this issue for now:

  • -ClearStart: Go to %localappdata%\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState and remove start2.bin
  • -ClearStartAllUsers: Go to C:\Users\default\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState and remove start2.bin. If users were created after this setting applied - remove this file for each of them too.

(I got this paths from here - this is a mentioned link in source code)

@Raphire Raphire self-assigned this Jan 24, 2025
@Raphire Raphire added the bug Something isn't working label Jan 24, 2025
@Raphire
Copy link
Owner

Raphire commented Jan 24, 2025

Heya,

Thanks for the detailed report on the issue. This is definitely a strange one. I'll report back once I've had time to reproduce the issue.

@Targink321
Copy link

for me it also happens when i restart and on th8e lock screen too

@Raphire
Copy link
Owner

Raphire commented Jan 28, 2025

Apologies for the late response, I've had very little spare time lately.

On my personal machine I'm not able to reproduce this issue on my personal machine unfortunately.

I'll install a fresh image of Windows on a virtual machine to test if I can somehow reproduce it there.

@Nikolai2038
Copy link
Author

Thank you! Take your time. I installed and then use this fresh Windows without an Internet connection - consider that too. ISO is official (US region), downloaded on 2024-04-28. So maybe this happens because image is quite outdated now

@Raphire
Copy link
Owner

Raphire commented Feb 9, 2025

Thank you! Take your time. I installed and then use this fresh Windows without an Internet connection - consider that too. ISO is official (US region), downloaded on 2024-04-28. So maybe this happens because image is quite outdated now

I suppose that's possible. I am still unable to reproduce this. It's also possible the file was corrupted as it was written by the script, hard to say though.

If you are willing, could you check if the issue occurs again after running the script once more? Please do make sure to backup your current start menu binary at %localappdata%\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState before doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants