SimonCropp / WinDebloat

A dotnet tool that removes the bloat in Windows
MIT License
430 stars 24 forks source link

Cannot find path while attempting to manually apply HideRecommendedSection #23

Closed beeradmoore closed 1 year ago

beeradmoore commented 1 year ago

Describe the bug

Unable to manually apply StartMenuRecommendations.

Screenshot 2023-08-06 124258 (EDIT: This does not use the original format from the current readme but the updated format from #22, as far as I know this should not be a problem)

Confirmed the entry does not exist in regedit. Screenshot 2023-08-06 124635

Minimal Repro

Attempting to execute

Set-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "HideRecommendedSection" -Type "DWord" -Value "1"

Additional notes

It appears from multiple sites (source 1, source 2) that if they key does not exist it should be created.

The docs for Set-ItemProperty seem to indicate it will create things, but maybe it only creates keys and not entries? (unsure of correct names, from the above regedit screenshot keys = things on right, entries = things on the left)

SimonCropp commented 1 year ago

actually i will just add a note about creating the parent for that item https://github.com/SimonCropp/WinDebloat/commit/e630591dcb8459222160f68ec80c082e6cf72496