Comments (15)
- On a fresh install they should be showing by default
- the screenshot you are showing is your "user folder" not 'This PC"
from win10script.
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.
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.
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:
- I created a test VM with a fresh install of Windows 10 with an ISO I got from the media creation tool
- The icons were there
- I made a backup of my registry
- 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. - After running
Win10Script
and rebooting the icons are no longer there - 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.
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.
from win10script.
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.
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.
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.
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" -ForceI 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.
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.
I removed the -Force
and added the BasefolderIDs
.. When i am done with some tests I will release it with the changes
from win10script.
I dont think it was something that was added, i think it has been there for a while
from win10script.
This issue should now be Solved in v3.6.6
from win10script.
:) Thanks!
from win10script.
Related Issues (9)
- Endless loop when selecting to Show Task Manager HOT 1
- Additional Security Options HOT 5
- _Win10-Script-Run.bat error if parent folder contains spaces HOT 1
- Feature Request: Enable / Disable Activity Feed (timeline) HOT 1
- Infinite loop 'Disabling Share/Share with' HOT 2
- Cortana registry HKCU changing i believe is wrong HOT 6
- Put Additional Apps you want script to remove here!!
- Telemetry Issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from win10script.