bedouinbro
Well-Known Member
- Joined
- Feb 6, 2024
- Messages
- 51
- Thread Author
- #1
basically what the title says
Last edited by a moderator:
HKEY_CURRENT_USER, so it should only affect your account.Windows Registry Editor Version 5.00
; Remove Home from File Explorer navigation pane
[HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}]
@="CLSID_MSGraphHomeFolder"
"System.IsPinnedToNameSpaceTree"=dword:00000000
; Remove Gallery from File Explorer navigation pane
[HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}]
"System.IsPinnedToNameSpaceTree"=dword:00000000
Remove_Home_Gallery.reg.reg file and accept the prompts.Stop-Process -Name explorer -Force.reg file with this:Windows Registry Editor Version 5.00
; Restore Home
[HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}]
@="CLSID_MSGraphHomeFolder"
"System.IsPinnedToNameSpaceTree"=dword:00000001
; Restore Gallery
[HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}]
"System.IsPinnedToNameSpaceTree"=dword:00000001
Win + R.sysdm.cpl.{f874310e-b6b7-47dc-bc84-b9e6b38f5903}, and Gallery uses {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}.poweshell commandHi bedouinbro — yep, those two entries can be hidden with a small registry tweak.
This removes Home and Gallery from the File Explorer left navigation pane only. It does not delete your files or uninstall anything. The tweak uses the per-user registry pathHKEY_CURRENT_USER, so it should only affect your account.
Remove Home and Gallery
- Open Notepad.
- Paste this in:
Code:Windows Registry Editor Version 5.00 ; Remove Home from File Explorer navigation pane [HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}] @="CLSID_MSGraphHomeFolder" "System.IsPinnedToNameSpaceTree"=dword:00000000 ; Remove Gallery from File Explorer navigation pane [HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}] "System.IsPinnedToNameSpaceTree"=dword:00000000
- Save it as:
Remove_Home_Gallery.reg
- Double-click the
.regfile and accept the prompts.- Restart File Explorer by doing one of these:
Stop-Process -Name explorer -Force
Or open Task Manager, right-click Windows Explorer, then choose Restart.
Restore them later
If you want Home and Gallery back, make another.regfile with this:
Code:Windows Registry Editor Version 5.00 ; Restore Home [HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}] @="CLSID_MSGraphHomeFolder" "System.IsPinnedToNameSpaceTree"=dword:00000001 ; Restore Gallery [HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}] "System.IsPinnedToNameSpaceTree"=dword:00000001Quick note
Before editing the registry, it’s a good idea to create a restore point:
These CLSID-based tweaks are the common Windows 11 method for hiding Home and Gallery from the navigation pane. Home uses
- Press
Win + R.- Type
sysdm.cpl.- Go to System Protection.
- Click Create.
{f874310e-b6b7-47dc-bc84-b9e6b38f5903}, and Gallery uses{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}.
New-Item -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Force | Out-Null
Set-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "(default)" -Value "CLSID_MSGraphHomeFolder"
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null
New-Item -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null
Stop-Process -Name explorer -Force
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null
Stop-Process -Name explorer -Force
reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /ve /d "CLSID_MSGraphHomeFolder" /f
reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f
Stop-Process -Name explorer -Force
Sure — run this in PowerShell. Admin is not required because this edits only your current user registry hive.
Remove Home and Gallery
Code:New-Item -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Force | Out-Null Set-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "(default)" -Value "CLSID_MSGraphHomeFolder" New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null New-Item -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Force | Out-Null New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null Stop-Process -Name explorer -ForceRestore Home and Gallery
If PowerShell complains about the default value line, use this version instead:Code:New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null Stop-Process -Name explorer -Force
Code:reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /ve /d "CLSID_MSGraphHomeFolder" /f reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f reg add "HKCU\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f Stop-Process -Name explorer -Force
E: volumes or if it is only an Explorer display bug.Get-Volume | Sort-Object DriveLetter | Format-Table DriveLetter, FileSystemLabel, DriveType, FileSystem, SizeRemaining, SizeE: entry, then it is just File Explorer duplicating it visually.Stop-Process -Name explorer -Forcereg export "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders" "$env:USERPROFILE\Desktop\DelegateFolders_Backup.reg" /y
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f
Stop-Process -Name explorer -Force
DelegateFolders_Backup.regStop-Process -Name explorer -ForceGet-Volume shows two actual E: entries, do not use the registry fix yet. In that case, open Disk Management with:diskmgmt.mscE:. Normally Windows should not assign the same drive letter to two mounted volumes.Hi bedouinbro — that usually happens when File Explorer is showing the same drive twice in the navigation pane, often because of a Windows Explorer/registry navigation-pane duplicate entry.
First check whether Windows really sees twoE:volumes or if it is only an Explorer display bug.
1. Check if Windows sees duplicate E: drives
Open PowerShell and run:
Get-Volume | Sort-Object DriveLetter | Format-Table DriveLetter, FileSystemLabel, DriveType, FileSystem, SizeRemaining, Size
If it shows only oneE:entry, then it is just File Explorer duplicating it visually.
2. Quick reset Explorer
Run:
Stop-Process -Name explorer -Force
Explorer will restart. If the duplicate is still there, continue below.
3. Fix duplicate drive entry in navigation pane
Create a restore point first since this edits the registry.
Open PowerShell as Administrator and run:
That registry key is commonly responsible for duplicate drive listings in File Explorer’s navigation pane.Code:reg export "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders" "$env:USERPROFILE\Desktop\DelegateFolders_Backup.reg" /y reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f Stop-Process -Name explorer -Force
4. Undo if needed
If something looks wrong, double-click this file on your Desktop:
DelegateFolders_Backup.reg
Then restart Explorer again:
Stop-Process -Name explorer -Force
Important note
IfGet-Volumeshows two actual E: entries, do not use the registry fix yet. In that case, open Disk Management with:
diskmgmt.msc
Then check whether two partitions/devices are somehow using or presenting asE:. Normally Windows should not assign the same drive letter to two mounted volumes.
E: drive.Get-Disk | Format-Table Number, FriendlyName, BusType, OperationalStatus, SizeE:.0, use this:reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 0 /f1, use this instead:reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 1 /freg delete "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /fpoweshell commandHi bedouinbro — that icon is the Safely Remove Hardware / Eject Media icon.
If you only want it hidden from the tray, do this first.
Option 1 — Hide the eject icon from taskbar overflow
This only hides the icon. It does not disable eject support.
- Open Settings.
- Go to Personalization.
- Open Taskbar.
- Expand Other system tray icons.
- Turn Windows Explorer / Safely Remove Hardware to Off if it appears there.
Option 2 — If it appears because your internal E: drive is detected as removable
This often happens when a SATA drive is set as Hot Plug / Hot Swap in BIOS/UEFI.
This is the cleanest fix if the eject icon is showing for an internal drive.
- Restart the PC.
- Enter BIOS/UEFI setup.
- Look for SATA options such as Hot Plug, Hot Swap, or External SATA.
- Disable Hot Plug for the port used by your internal
E:drive.- Save and boot back into Windows.
Option 3 — Registry fix for internal SATA drive shown as removable
Only use this if the drive is internal and should not be ejectable.
- Open PowerShell as Administrator.
- Run this to list your disks:
Get-Disk | Format-Table Number, FriendlyName, BusType, OperationalStatus, Size
- Find the disk number for the internal drive that contains
E:.- If it is disk
0, use this:reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 0 /f
- If it is disk
1, use this instead:reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 1 /f
- Restart Windows.
Undo registry change
If needed, remove the tweak with:
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /f
Then restart.
Important: Do not remove/hide this feature if you regularly use USB drives, external HDDs, card readers, or phones, because the eject icon helps prevent data corruption when unplugging them.
Start-Process "ms-settings:taskbar"Get-Disk | Format-Table Number, FriendlyName, BusType, OperationalStatus, SizeE: drive is an internal SATA drive, run this command, replacing 0 with the correct internal disk/port number:reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 0 /fStop-Process -Name explorer -Forcereg delete "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /f