Giter Club home page Giter Club logo

Comments (15)

madbomb122 avatar madbomb122 commented on May 24, 2024
  1. On a fresh install they should be showing by default
  2. the screenshot you are showing is your "user folder" not 'This PC"

from win10script.

imthenachoman avatar imthenachoman commented on May 24, 2024

I figured out the issue. I am headed out right now but I will reply shortly with details. I think your -force option is deleting other keys/values that are needed. Will explain...

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

I tested this on windows 10 home (version 1803) in a virtual machine
what did was "Show/Add" on the fresh install, rebooted and it still showed.

I even tested "Removing" and "Hiding" the items then a "Show/Add" and it still shows the item even after reboot.

are you sure you selected "Show/Add" and not "Remove/Hide"?

Try running the script again and select "Show/Add" and reboot computer or restart explorer

from win10script.

imthenachoman avatar imthenachoman commented on May 24, 2024

are you sure you selected "Show/Add" and not "Remove/Hide"?

Yes. I selected "Show/Add"

Try running the script again and select "Show/Add" and reboot computer or restart explorer

Does not work.

But I figured out the problem. A fresh installation of Windows 10 has some other keys/properties/values in the registry and your script somehow deletes those keys. For example, the downloads key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag also has a dword called BaseFolderId with the value {374DE290-123F-4565-9164-39C4925E467B}. Win10Script deletes that setting.

I was having the issue on two different Windows installations:

  • Windows 10 Home version 1803 build 17134.472
  • Windows 10 Pro version 1809 build 17763.195

My test:

  1. I created a test VM with a fresh install of Windows 10 with an ISO I got from the media creation tool
  2. The icons were there
  3. I made a backup of my registry
  4. I ran Win10Script and selected "Show/Add' for all of the folders under "This PC". I know they are already shown by default on a fresh installation but I selected them just in case. In theory it shouldn't break anything if they are already there.
  5. After running Win10Script and rebooting the icons are no longer there
  6. I compared the registry and noticed a slew of the registry keys were missing the BaseFolderId property

This is an export of the default keys for all of the folders. You can see which ones have the BaseFolderId property.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag]
"ThisPCPolicy"="Show"
"NoCustomize"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag]
"ThisPCPolicy"="Show"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag]
"ThisPCPolicy"="Show"
"BaseFolderId"="{FDD39AD0-238F-46AF-ADB4-6C85480369C7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag]
"ThisPCPolicy"="Show"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag]
"ThisPCPolicy"="Show"
"BaseFolderId"="{374DE290-123F-4565-9164-39C4925E467B}"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag]
"ThisPCPolicy"="Show"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag]
"ThisPCPolicy"="Show"
"BaseFolderId"="{4BD8D571-6D19-48D3-BE97-422220080E43}"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag]
"ThisPCPolicy"="Show"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag]
"ThisPCPolicy"="Show"
"BaseFolderId"="{33E28130-4E1E-4676-835A-98395C3BC3BB}"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag]
"ThisPCPolicy"="Show"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag]
"ThisPCPolicy"="Show"
"BaseFolderId"="{18989B1D-99B5-455B-841C-AB7C74E4DDFC}"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag]
"ThisPCPolicy"="Show"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag]
"ThisPCPolicy"="Show"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag]
"ThisPCPolicy"="Show"

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

the only time that "BaseFolderID" is deleted is when you select the remove option

since it deletes

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\XXXX

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\XXXX

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\XXXX

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\XXXX

XXXX = being the icon ID string thing

the Show/Unhide Re-Adds the key path above (if it's not there already) and adds/changes "ThisPCPolicy"="Show"

I tried it multi times and even with the 'BaseFoldeId' key missing it still shows them for me (after running my script)

from win10script.

imthenachoman avatar imthenachoman commented on May 24, 2024

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

did you see if it showed after adding the BaseFoldeId keys?
if it does i'll add it in my script to make sure they are there.

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

btw i noticed from your screenshot that the start of the navigation list folders is Desktop.. mine is ThisPC (even on the fresh install).

Is it like that for you on a fresh install?

I wonder if that is part of the issue

from win10script.

imthenachoman avatar imthenachoman commented on May 24, 2024

I tried it multi times and even with the 'BaseFoldeId' key missing it still shows them for me (after running my script)

Even after reboot?

did you see if it showed after adding the BaseFoldeId keys?

Yes

btw i noticed from your screenshot that the start of the navigation list folders is Desktop.. mine is ThisPC (even on the fresh install).

Right click on the left area and select "Show all folders". I don't know if that should change anything...

So I just did a test by running this PowerShell script. Right now the BaseFolderId key is there but after running the below code it is gone.

$Path = '\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag'
New-Item -Path "HKLM:\SOFTWARE\$Path" -Force

I can only assume that the -Force option is overwriting it.

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

I tried it multi times and even with the 'BaseFoldeId' key missing it still shows them for me (after running my script)

Even after reboot?

Yes

btw i noticed from your screenshot that the start of the navigation list folders is Desktop.. mine is ThisPC (even on the fresh install).

Right click on the left area and select "Show all folders". I don't know if that should change anything...

I turned this on didn't see the folders, i undid what my script did (added the BaseFolderId keys) and they showed. So it seems like the BaseFolderId is for showing the folders in the User's Folder

So I just did a test by running this PowerShell script. Right now the BaseFolderId key is there but after running the below code it is gone.

$Path = '\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag'
New-Item -Path "HKLM:\SOFTWARE$Path" -Force

I can only assume that the `-Force` option is overwriting it.

yeah it is the -Force option that removes it, i am adding the BaseFolderId keys to the script with the Show/Add options

from win10script.

imthenachoman avatar imthenachoman commented on May 24, 2024

Alternatively, maybe it would be better to check if the folder exists before creating? That way if MS adds other keys/sub-folders then there won't be any issues.

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

I removed the -Forceand added the BasefolderIDs.. When i am done with some tests I will release it with the changes

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

I dont think it was something that was added, i think it has been there for a while

from win10script.

madbomb122 avatar madbomb122 commented on May 24, 2024

This issue should now be Solved in v3.6.6

from win10script.

imthenachoman avatar imthenachoman commented on May 24, 2024

:) Thanks!

from win10script.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.