Raphire / Win11Debloat

A simple, easy to use PowerShell script to remove pre-installed apps from Windows, disable telemetry, remove Bing from Windows search as well as perform various other changes to declutter and improve your Windows experience. This script works for both Windows 10 and Windows 11.
MIT License
14.2k stars 615 forks source link

Remove start menu pinned apps for default user #109

Closed trackday1 closed 3 months ago

trackday1 commented 3 months ago

Describe the bug After an in place upgrade, user accounts that have not yet logged in error during "Remove start menu pinned apps for all users". This may be expected due to not being initialized but the script then fails to continue to the "# Also apply start menu template to the default profile". If I manually copy start2.bin it works as expected.

To Reproduce Steps to reproduce the behavior: In place upgrade from Win10 Run script with bat or manual command See error about existing user accounts.

Expected behavior Understandably the existing accounts may not be editable until initial login but hopefully the script could continue past that error and still copy the start2.bin for the default user.

Raphire commented 3 months ago

Heya,

Thanks for reporting this!

The way the start menu is saved is different between Windows 10 and 11, and earlier versions of Windows 11 actually used a different format compared to now. For this reason the script checks if the expected start2.bin format already exists per user. This is indeed intended behaviour to prevent unintended consequences.

As you noted however, if any user doesn't pass this check it will skip setting the start menu for any other users and the default user. This definitely isn't intended and I'll issue a fix for this soon!

Raphire commented 3 months ago

This issue has been fixed as of 60f944d

Thanks for reporting!

trackday1 commented 3 months ago

Thank you