Full Context Menu tweak not working for All Users (HKU/Default), works fine for HKCU


DHC2Pilot

New member
Local time
9:02 PM
Posts
2
OS
Windows11
Recently I used the known tweak to enable the full context menu in Windows 11 on my work laptop, and it worked as advertised, no problems at all. I understand that this tweak will only change the context menu for the currently logged in user (ME), hence modifying HKCU....

Reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /ve /t REG_SZ /d "" /f
Reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /t REG_SZ /d "" /f
(Restart explorer.exe or reboot laptop)

What I want to do is modify the default profile so that all new users logging in will also have the full context menu. In theory I should be able to load the default user hive, modify/add the same key, then unload the default user hive.

reg load HKU\temphive c:\Users\default\ntuser.dat
reg add "HKU\temphive\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /ve /t REG_SZ /d "" /f
reg add "HKU\temphive\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /t REG_SZ /d "" /f
reg unload HKU\temphive

I also tried HKLM\Default.... as I've seen that being used to modify the default profile hive as well.....same results.

This process worked fine for the Left Start Menu tweak (all users have the Start menu on the left side of the taskbar). It does NOT work for the Full Context Menu. The registry key is changed in HKU\Default but when I log in as a different user (new user) the context menu is the standard Windows 11 mess. Looking in the new user's registry hive the setting is NOT being propagated from HKU\DEFAULT as it should be.

Has anyone out there been able to defeat this issue? Strange how modifying the Default Hive works for some keys and not for others.
Thanks in advance!!!
 

My Computer

System One

  • OS
    Windows11
Hello, and welcome. :-)

As a test, use the Enable_Show_more_options_context_menu.reg download in option 1 below first to clear the registry key, then use the Disable_Show_more_options_context_menu.reg file to disable "Show more options".

Afterwards use step 7 to apply and see if that may work for you.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
The original fix, involved downloading a little script that did the dirty deed., and restored the full Right Click Context Menu.
That obviously worked for at least Some People, but not for me.

So I resorted to Plan B, entering the appropriate line of text at a command prompt. And, that worked.
I was confused by the terms "Disabled" and "Enabled". It seems like those terms should be reversed. Eh?

It's beyond my comprehension, why MS had to mess with something, like the Context Menu, that has worked just fine for many years and many versions of Windows. They just don't know when to leave well enough alone.

TM :cool:
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V3, 23H2 22631.3085
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    Onboard, ATI Radeon HD 3000; NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
This is exactly the process I used above....works fine for the currently logged in user, but when importing the same keys to the default user hive the setting does not get applied to new users.
 

My Computer

System One

  • OS
    Windows11
Unfortunately not. Only current user so far. :(
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
This is exactly the process I used above....works fine for the currently logged in user, but when importing the same keys to the default user hive the setting does not get applied to new users.
Let me know if this works for you as it works for me

Batch:
:THIS LOADS THE DEFAULT HIVE
reg load HKLM\DEFAULT c:\users\default\ntuser.dat
:THIS ENABLES THE OLDER STYLE CONTEXTUAL MENUS
reg add "HKLM\default\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v FullContext /d "C:\Windows\system32\cmd.exe /c reg add \"HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32\" /v \"\" /f" /f
:THIS IS RESTART EXPLORER ON FIRST RUNONCE
reg add "HKLM\default\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v Restart /d "powershell -Command Stop-Process -Processname Explorer -WarningAction SilentlyContinue -ErrorAction SilentlyContinue -force" /f
:THIS UNLOADS THE DEFUALT HIVE
reg unload HKLM\DEFAULT
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    I9-13900K
    Motherboard
    Z790 MSI MPG Carbon WIFI
    Memory
    G.SKILL Trident Z5 64GB (4 x 16GB) DDR5 7200
    Graphics Card(s)
    GeForce RTX™ 3080 Ti VENTUS 3X 12G OC
    Hard Drives
    MSI M480 2TB, Samsung 980 Pro 2tb, Samsung 870 QVO 4tb, Samsung 990 Pro 1tb on order
    PSU
    Thermaltake Toughpower iRGB PLUS 850W Platinum
    Case
    Thermaltake Core P5
    Cooling
    Custom Loop Thermaltake
    Keyboard
    Corsair K95 RGB Platinum
    Mouse
    Logitech G502 Lightspeed
I know this is an old thread but I was looking for this answer myself, and this thread showed up at the top of my search without one..

The HKCU keys you are adding, are only overriding the actual systemwide key for each user. If you want this to be the default behavior for all users, change the main key.

You will need SetACL to gain permission to edit the key (or any other method to take ownership of the key): https://helgeklein.com/downloads/SetACL/current/SetACL 3.1.2 (executable version).zip

The following commands can be used from an administrator cmd prompt (from a folder containing SetACL) to make the changes and backup the original key to your desktop.

Code:
SetACL.exe -on "HKLM\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -ot reg -actn setowner -ownr "n:Administrators" -rec Yes

SetACL.exe -on "HKLM\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -ot reg -actn ace -ace "n:Administrators;p:full" -rec Yes

REG export HKLM\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2} "%UserProfile%\Desktop\ContextRegBackup.reg"

REG delete HKLM\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /f

REG add HKLM\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /ve /t REG_SZ /f

You will need to log out and back in/restart to see changes.
 

My Computer

System One

  • OS
    PE
I know this is an old thread but I was looking for this answer myself
reg load HKU\temphive c:\Users\default\ntuser.dat
Was the OP loading the right hive?
I think the Registry Keys required by the OP are only given in UsrClass.dat rather than NTUser.dat
reg load HKU\DefaultClasses C:\Users\Default\AppData\Local\Microsoft\Windows\UsrClass.dat
and that can be checked by browsing down through the loaded HKU\DefaultClasses hive.


On a minor note, this should be run at the end
reg unload HKU\DefaultClasses



Denis
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3296
I do not see UsrClass.dat in current Win11 install.wim(s) in that location. How would we bake this into an image without the HKLM key? (Which appears to work universally)
 

My Computer

System One

  • OS
    PE
I know nothing about the contents of wim files.

But I've checked further and that UsrClass.dat file does not exist in the C:\Users\Default\AppData\Local\Microsoft\Windows folder.
C:\Users\%Username%\AppData\Local\Microsoft\Windows\UsrClass.dat exist for the currently logged on user but not for other [previously logged on] users.
So I have no idea how the job can be done.


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3296
It is only a system that has not been run yet. Your C:\ before it's first run when no users have been created yet. A "Windows Image"

If the file is not there, it comes from somewhere else, or is generated at boot.

I almost want to test importing a UsrClass.dat into the default users appdata folder to see if it gets overwritten or used during install, but even if that works, editing a key is better than creating an entirely new file..
 
Last edited:

My Computer

System One

  • OS
    PE
I almost want to test

Bob,

I think that might well be a useful test.
Given that there was no UsrClass.dat for my other users, perhaps a new UsrClass.dat is spawned at every login so its data resides in the ntuser.dat after all??????

I thought that somebody knowledgeable in TenForums had posted about that UsrClass.dat file but the only note I can find at the moment is
Edit Classes-Registry of other users - Stack Overflow
and, more generally for your offline editing,
Edit Registry on an Offline Image [DISM] - TenForumsTutorials {there does not seem to be an ElevenForumTutorial yet}
Modify Registry from InstallUSB [SIW2 #19] - TenForums


All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3296
It appears UsrClass.dat is a compatibility remnant used for pre-vista software writing to non user based registry hives.

Source (MS) Registry Virtualization - Win32 apps :
*copy/paste consolidated for context

Prior to Windows Vista, applications were typically run by administrators. As a result, applications could freely access system files and registry keys. If these applications were run by a standard user, they would fail due to insufficient access rights. Windows Vista and later versions of Windows improve application compatibility for these applications by automatically redirecting these operations. For example, registry operations to the global store (HKEY_LOCAL_MACHINE\Software) are redirected to a per-user location within the user's profile known as the virtual store (HKEY_USERS\<User SID>_Classes\VirtualStore\Machine\Software).

Registry virtualization is enabled only for the following:
  • 32-bit interactive processes.
  • Keys in HKEY_LOCAL_MACHINE\Software.
  • Keys that an administrator can write to. (If an administrator cannot write to a key, then the application would have failed on previous versions of Windows even if it was run by an administrator.)
If the caller reads from a key that is virtualized, the registry presents a merged view of both the virtualized values (from the virtual store) and the non-virtual values (from the global store) to the caller.

For example, suppose HKEY_LOCAL_MACHINE\Software\AppKey1 contains two values V1 and V2 and that a limited user writes a value V3 to the key. When the user attempts to read values from this key, the merged view includes values V1 and V2 from the global store and value V3 from the virtual store.

Note that virtual values take precedence over global values when present. In the example above, even if the global store had value V3 under this key, the value V3 would still be returned to the caller from the virtual store. If V3 were to be deleted from the virtual store, then V3 would be returned from the global store. In other words, if V3 were to be deleted from HKEY_USERS\<User SID>_Classes\VirtualStore\Machine\Software\AppKey1 but HKEY_LOCAL_MACHINE\Software\AppKey1 had a value V3, then that value would be returned from the global store.
 

My Computer

System One

  • OS
    PE
Bob,

That's very interesting. Thanks for posting.

I'll study the MSLearn article properly later but my initial impression is that the OP never needed to alter any UsrClass keys at all, assuming RegEdit or any reg commands were run as Admin.
I don't think I've quite grasped the whole thing yet because my UsrClass.dat file was modified at my last login & has a file creation date in 2020 yet my other not-currently-logged-in user has no UsrClass.dat at all.


All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3296
Its not directly stated but the article is referencing UsrClass.dat (and others) when they mention the "Virtual Store".

I found a new hive when looking this up too (C:\Windows\AppCompat\Programs\Amcache.hve) :winkt:
 

My Computer

System One

  • OS
    PE
I can't check my Winodws 11 computer at the moment, because it's doing a long test sequence that I cannot interrupt, but I imagine the Registry hive list is the same as in Windows 10.
hklm\system\currentcontrolset\control\hivelist

The other files in C:\Windows\AppCompat\Programs certainly make it look at though Amcache.hve is a hive.
I have not tried to examine its contents.


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3296

Latest Support Threads

Back
Top Bottom