Make Registry Values Apply to All Users


SylenThunder

Active member
Local time
7:15 PM
Posts
39
OS
Windows 11
Testing a rollout of Windows 11 Enterprise and have a few things that I want to customize.

The first is removing widgets, search, chat, and task switch from the taskbar. The second is re-instating the classic right-click menu.
Now for the most part, these settings are configured in HKCU. The problem is that it only applies to the current logged in user.

I know that we could use GPO as an alternative, but we will have a mixed environment, and are attempting to keep GPO changes to a minimum as most of our users are remote. It would be far easier to just drop registry changes into the imaging process.

I attempted setting them in HKLM, but only had mixed success. Any assistance with this is appreciated.
 
Windows Build/Version
Windows 11 Enterprise 22H2 build 22621.963

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    ASUS X570-E ROG Strix Gaming
    Memory
    G.Skill Ripjaws V 32GB (2 x 16GB) DDR4-3200
    Graphics Card(s)
    PNY GTX 1070 XLR8 Gaming Overclocked Edition 8GB
    Sound Card
    HyperX Cloud II Gaming Headset
    Monitor(s) Displays
    1x Samsung Odyssey G5 35" & 4x LG 24" IPS LED's
    Screen Resolution
    1x 2560x1440 4x 1920x1080
    Hard Drives
    500GB Evo 860 SSD (OS)
    1TB Evo 860 m.2 (Games)
    2x 2TB FireCuda Solid State Hybrid Drive (SSHD) in RAID-0 (Software)
    2TB Toshiba (storage)
    PSU
    Corsair 750W Gold
    Case
    Cooler Master MasterBox MB511 ARGB
    Cooling
    Wraith Prism
    Keyboard
    Microsoft Natural Ergonomic 4000
    Mouse
    Anker 2000dpi Precision Gaming
    Internet Speed
    1200Gbps
    Browser
    Brave
    Antivirus
    BitDefender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer G9-793-79v5
    CPU
    i7-7700HQ
    Motherboard
    Acer Challenger2_SKS (U3E1)
    Memory
    16GB DDR4 2400 (2x8)
    Graphics card(s)
    GTX 1070 8GB
    Monitor(s) Displays
    17.3" Full HD IPS display with NVIDIA G-SYNC technology
    Screen Resolution
    1920x1080
    Hard Drives
    2x 120GB m.2 SSD's in RIAD-0 (OS)
    1x 250GB Evo 850
    Cooling
    Cooler Master Predator FrostCore
did you try adding the changes to the default hive ?
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Later versions of W11 have a bad habit of selectively ignoring inherited HKCU keys, from the Default user hive. For example, user locale and desktop preferences. You would have to apply them after the user is provisioned.

If the system is single-user, create a RunOnce task to apply your regedits. For a multi-user PC, maybe a Default user start folder script which applies changes and deletes itself.
 

My Computer

System One

  • OS
    Windows 7
Later versions of W11 have a bad habit of selectively ignoring inherited HKCU keys, from the Default user hive. For example, user locale and desktop preferences. You would have to apply them after the user is provisioned.

If the system is single-user, create a RunOnce task to apply your regedits. For a multi-user PC, maybe a Default user start folder script which applies changes and deletes itself.
Yes, this is correct. That was my first stop after HKLM didn't work. Default user hive did not sync any of the edits to the user account.

The run once task could work except that we are logging in 2-3 accounts during the set up process, so it would be up to the last agent working on the hardware deploy to manually put the file in place. Also would not work for multiple users as we do have a couple of those.

Again, we could set a GPO for it. This has two negatives though. First is that GPO's are not always applied properly when user is remote. Second is that setting a lot of them tend to slow down the login process considerably, and do not remain synced very well. GPO is also more of a permanent thing, and I would like for the users to have the ability to enable the features later if they want them. I just don't want them to be loaded by default. Was kind of hoping there might be something we could configure in the ISO or a better way to make the registry changes stick without resorting to 3rd-party software.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    ASUS X570-E ROG Strix Gaming
    Memory
    G.Skill Ripjaws V 32GB (2 x 16GB) DDR4-3200
    Graphics Card(s)
    PNY GTX 1070 XLR8 Gaming Overclocked Edition 8GB
    Sound Card
    HyperX Cloud II Gaming Headset
    Monitor(s) Displays
    1x Samsung Odyssey G5 35" & 4x LG 24" IPS LED's
    Screen Resolution
    1x 2560x1440 4x 1920x1080
    Hard Drives
    500GB Evo 860 SSD (OS)
    1TB Evo 860 m.2 (Games)
    2x 2TB FireCuda Solid State Hybrid Drive (SSHD) in RAID-0 (Software)
    2TB Toshiba (storage)
    PSU
    Corsair 750W Gold
    Case
    Cooler Master MasterBox MB511 ARGB
    Cooling
    Wraith Prism
    Keyboard
    Microsoft Natural Ergonomic 4000
    Mouse
    Anker 2000dpi Precision Gaming
    Internet Speed
    1200Gbps
    Browser
    Brave
    Antivirus
    BitDefender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer G9-793-79v5
    CPU
    i7-7700HQ
    Motherboard
    Acer Challenger2_SKS (U3E1)
    Memory
    16GB DDR4 2400 (2x8)
    Graphics card(s)
    GTX 1070 8GB
    Monitor(s) Displays
    17.3" Full HD IPS display with NVIDIA G-SYNC technology
    Screen Resolution
    1920x1080
    Hard Drives
    2x 120GB m.2 SSD's in RIAD-0 (OS)
    1x 250GB Evo 850
    Cooling
    Cooler Master Predator FrostCore
Like my previous idea, copy a script to folder "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup", so every first logon runs the customization. This avoids the GPO hassle, and takes care of both remote and later added users.

Default User's Startup folder Windows 8.1 vs Windows 10
Yes, this absolutely looks like the best option. Curious though, how to make the file delete itself. Just run delete at the end? I would think that if it was "in use" that wouldn't work.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    ASUS X570-E ROG Strix Gaming
    Memory
    G.Skill Ripjaws V 32GB (2 x 16GB) DDR4-3200
    Graphics Card(s)
    PNY GTX 1070 XLR8 Gaming Overclocked Edition 8GB
    Sound Card
    HyperX Cloud II Gaming Headset
    Monitor(s) Displays
    1x Samsung Odyssey G5 35" & 4x LG 24" IPS LED's
    Screen Resolution
    1x 2560x1440 4x 1920x1080
    Hard Drives
    500GB Evo 860 SSD (OS)
    1TB Evo 860 m.2 (Games)
    2x 2TB FireCuda Solid State Hybrid Drive (SSHD) in RAID-0 (Software)
    2TB Toshiba (storage)
    PSU
    Corsair 750W Gold
    Case
    Cooler Master MasterBox MB511 ARGB
    Cooling
    Wraith Prism
    Keyboard
    Microsoft Natural Ergonomic 4000
    Mouse
    Anker 2000dpi Precision Gaming
    Internet Speed
    1200Gbps
    Browser
    Brave
    Antivirus
    BitDefender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer G9-793-79v5
    CPU
    i7-7700HQ
    Motherboard
    Acer Challenger2_SKS (U3E1)
    Memory
    16GB DDR4 2400 (2x8)
    Graphics card(s)
    GTX 1070 8GB
    Monitor(s) Displays
    17.3" Full HD IPS display with NVIDIA G-SYNC technology
    Screen Resolution
    1920x1080
    Hard Drives
    2x 120GB m.2 SSD's in RIAD-0 (OS)
    1x 250GB Evo 850
    Cooling
    Cooler Master Predator FrostCore
Seems like it's been forever. Still need to test, but this is what I've got put together so far.

Going to try setting this PowerShell script in the default user startup.
Powershell:
REG LOAD HKLM\Default C:\Users\Default\NTUSER.DAT
 
# Removes Task View from the Taskbar
New-itemproperty "HKLM:\Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Value "0" -PropertyType Dword
 
# Removes Widgets from the Taskbar
New-itemproperty "HKLM:\Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarDa" -Value "0" -PropertyType Dword
 
# Removes Chat from the Taskbar
New-itemproperty "HKLM:\Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarMn" -Value "0" -PropertyType Dword
 
# Default StartMenu alignment 0=Left
New-itemproperty "HKLM:\Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAl" -Value "0" -PropertyType Dword
 
# Removes search from the Taskbar
New-itemproperty "HKLM:\Default\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Value "0" -PropertyType Dword

# Restore classic right-click menu
New-itemproperty "HKLM:\Default\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Name "@" -Value ""
 
REG UNLOAD HKLM\Default

del "%~f0" & exit
Not entirely sure that the right-click menu at the end will work. The key for it looks like this...
Code:
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    ASUS X570-E ROG Strix Gaming
    Memory
    G.Skill Ripjaws V 32GB (2 x 16GB) DDR4-3200
    Graphics Card(s)
    PNY GTX 1070 XLR8 Gaming Overclocked Edition 8GB
    Sound Card
    HyperX Cloud II Gaming Headset
    Monitor(s) Displays
    1x Samsung Odyssey G5 35" & 4x LG 24" IPS LED's
    Screen Resolution
    1x 2560x1440 4x 1920x1080
    Hard Drives
    500GB Evo 860 SSD (OS)
    1TB Evo 860 m.2 (Games)
    2x 2TB FireCuda Solid State Hybrid Drive (SSHD) in RAID-0 (Software)
    2TB Toshiba (storage)
    PSU
    Corsair 750W Gold
    Case
    Cooler Master MasterBox MB511 ARGB
    Cooling
    Wraith Prism
    Keyboard
    Microsoft Natural Ergonomic 4000
    Mouse
    Anker 2000dpi Precision Gaming
    Internet Speed
    1200Gbps
    Browser
    Brave
    Antivirus
    BitDefender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer G9-793-79v5
    CPU
    i7-7700HQ
    Motherboard
    Acer Challenger2_SKS (U3E1)
    Memory
    16GB DDR4 2400 (2x8)
    Graphics card(s)
    GTX 1070 8GB
    Monitor(s) Displays
    17.3" Full HD IPS display with NVIDIA G-SYNC technology
    Screen Resolution
    1920x1080
    Hard Drives
    2x 120GB m.2 SSD's in RIAD-0 (OS)
    1x 250GB Evo 850
    Cooling
    Cooler Master Predator FrostCore
Avoid touching HKLM. Where you have absolutely no choice, hit HKLM in the build process before the user logs in. On first logon your script should only be touching HKCU. It keeps things simple and reliable, does not require elevated privileges, allows for rolling back to the default settings in HKLM, and is less affected by Windows updates and/or repairs that may roll back those HKLM changes.
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer
Avoid touching HKLM. Where you have absolutely no choice, hit HKLM in the build process before the user logs in. On first logon your script should only be touching HKCU. It keeps things simple and reliable, does not require elevated privileges, allows for rolling back to the default settings in HKLM, and is less affected by Windows updates and/or repairs that may roll back those HKLM changes.
Absolutely correct. That is something I apparently forgot to change. Thank you for noticing.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    ASUS X570-E ROG Strix Gaming
    Memory
    G.Skill Ripjaws V 32GB (2 x 16GB) DDR4-3200
    Graphics Card(s)
    PNY GTX 1070 XLR8 Gaming Overclocked Edition 8GB
    Sound Card
    HyperX Cloud II Gaming Headset
    Monitor(s) Displays
    1x Samsung Odyssey G5 35" & 4x LG 24" IPS LED's
    Screen Resolution
    1x 2560x1440 4x 1920x1080
    Hard Drives
    500GB Evo 860 SSD (OS)
    1TB Evo 860 m.2 (Games)
    2x 2TB FireCuda Solid State Hybrid Drive (SSHD) in RAID-0 (Software)
    2TB Toshiba (storage)
    PSU
    Corsair 750W Gold
    Case
    Cooler Master MasterBox MB511 ARGB
    Cooling
    Wraith Prism
    Keyboard
    Microsoft Natural Ergonomic 4000
    Mouse
    Anker 2000dpi Precision Gaming
    Internet Speed
    1200Gbps
    Browser
    Brave
    Antivirus
    BitDefender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Acer G9-793-79v5
    CPU
    i7-7700HQ
    Motherboard
    Acer Challenger2_SKS (U3E1)
    Memory
    16GB DDR4 2400 (2x8)
    Graphics card(s)
    GTX 1070 8GB
    Monitor(s) Displays
    17.3" Full HD IPS display with NVIDIA G-SYNC technology
    Screen Resolution
    1920x1080
    Hard Drives
    2x 120GB m.2 SSD's in RIAD-0 (OS)
    1x 250GB Evo 850
    Cooling
    Cooler Master Predator FrostCore
My advice is to use the NTLite software, it allows you to modify registry keys for all users.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI Prestige 15
Testing a rollout of Windows 11 Enterprise and have a few things that I want to customize.

The first is removing widgets, search, chat, and task switch from the taskbar. The second is re-instating the classic right-click menu.
Now for the most part, these settings are configured in HKCU. The problem is that it only applies to the current logged in user.

I know that we could use GPO as an alternative, but we will have a mixed environment, and are attempting to keep GPO changes to a minimum as most of our users are remote. It would be far easier to just drop registry changes into the imaging process.

I attempted setting them in HKLM, but only had mixed success. Any assistance with this is appreciated.

For the default state of the search box/button on Windows 11 22H2, I found that there's an additional reg value in the default user registry file required for this to work.
Under HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search:
SearchboxTaskbarMode = 0/1/2/3 depending on your preference (This is known to work on Windows 10 and earlier versions of Windows 11)
SearchboxTaskbarModeCache (Once I also set this to the same as above, the default setting works for new user profiles.)
 

My Computer

System One

  • OS
    Windows 10
Any assistance with this is appreciated.



I'm one of those people who occasionally use tools the wrong way, and feel no guilt when doing it.

One of the best things about ElevenForum is the tutorials. There's tutorials for ... everything.
Most of them have a registry option for doing... whatever, and a lot of those have the option of doing whatever for the current user or for all users.

Now here's where using tools the wrong way comes in.
Obviously we can open any reg patch in notepad and see what's IN there.
So when I'm curious or trying to do something out of the ordinary, I cheat. I look inside the existing reg patches in the tutorials.

On that note... here's a lot of the more commonly requested tutorials...

 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22631.3527 ♦♦♦♦♦♦♦23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 4702)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?
I just can not believe how Microsoft builds his OS.

I edit the C:\Users\Default\NTUSER.DAT

If you login with a new account via RDP -> the settings are applied in HKCU
If you login with a new account sitting infront of the desktop computer -> the settings are NOT applied in HKCU
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
I just can not believe how Microsoft builds his OS.

I edit the C:\Users\Default\NTUSER.DAT

If you login with a new account via RDP -> the settings are applied in HKCU
If you login with a new account sitting in front of the desktop computer -> the settings are NOT applied in HKCU
If you have updated C:\Users\Default\NTUSER.DAT (i.e. load hive, change/add setting, unload hive) those settings must always apply to a new account. Maybe some other process is overwriting your changes.

Try something very simple, such as adding a folder to the user search path (HKEY_USERS\LoadedHive\Environment\Path).
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer
I swear to God. I have tried it many times. When i login via RDP for the first time, the user profile is created and the registry edits i did to NTUSER.DAT file are applied to the HKCU registry.

If i do the same for the first time on a new account sitting infront of the computer, the NTUSER.DAT is not being applied. I'll try the folder thing you said and get back to you.

The Windows 11 is a clean installation. Only the NTUSER.DAT is modified from default profile.
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
Loaded Hive

1712929853015.png

New User Profile created when logged in via RDP

1712929905517.png

New User Profile created sitting infront of the PC

1712930845962.png

As you mentioned it works BUT i have set values for example at

LOADED_HIVE\Control Panel\Desktop\WindowMetrics -> MinAnimate = 0

When i do the same procedure from RDP the value is set as 0 BUT when i login infront of the PC the value is set as 1.

What is happening??!!
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
I heard this complaint many times, and seen it. Something in new user provisioning ignores or clobbers a wide range of hive settings that should be inherited from Default User. The behavior is very bad in later W10 releases, and all of W11. I've never understood the reasons.

The only guaranteed fix is to apply HKCU settings AFTER the first logon session.
 

My Computer

System One

  • OS
    Windows 7
Something in new user provisioning ignores or clobbers a wide range of hive settings that should be inherited from Default User.
Probably Active Setup.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 [rev. 3447]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
Back
Top Bottom