WIM image NTUSER.DAT problem help

berkays0733

New Member
Messages
2
Reaction score
0
I manually mount a wim image. then using reg load I mount the reg paths offline as regedit. but the changes to the default user are not saved. When I try this reg file in ntlite, the bat file opens when the desktop arrives and applies the dark theme. How can I apply this in the same way?

1 - Firstly, I assembled the hives as follows ;

reg load HKLM\SHADES_SOFTWARE "C:\Users\Admin\AppData\Local\Temp\NLTmpMnt\Windows\System32\config\SOFTWARE"
reg load HKLM\SHADES_SYSTEM "C:\Users\Admin\AppData\Local\Temp\NLTmpMnt\Windows\System32\config\SYSTEM"
reg load HKLM\SHADES_HKU "C:\Users\Admin\AppData\Local\Temp\NLTmpMnt\Windows\System32\config\DEFAULT"
reg load HKLM\SHADES_HKCU "C:\Users\Admin\AppData\Local\Temp\NLTmpMnt\Users\Default\NTUSER.DAT"

2 - ardından reg dosyamı düzenledim ;

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SHADES_HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
"AppsUseLightTheme"=dword:00000000
"SystemUsesLightTheme"=dword:00000000


When I add this reg to the system and test the system, the dark theme is not actually applied. Can someone help with this? Actually, when I check, the values are saved in the registry, but when the system boots, these values are restored after the user is created. and I think this problem only happens with HKCU. :(
 
Why not use these options in NTLite (Settings - Desktop) ?
For my setting

View attachment 14079

Set in the image and everything is good after installation
I know this, what I'm talking about is that the changes made for the default user are not saved in regedit hives opened offline. to solve this, the cmd command is added in SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce. this works when the user logs in.
 
NTLite does it very well, I don't bother to do it manually (and never looked for it anyway)
Options applied correctly after installation (with keys in HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize)
 
Last edited:
That's right.
Just add the folder containing you regfiles in Registry section and NTL will handle the rest.
 
I've never looked/checked but the options in NTLite may correspond to HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize
 
I looked, the only RunOnce where I have this key is here

Code:
[HKEY_USERS\S-1-5-19\Software\Microsoft\Windows\CurrentVersion\RunOnce]
"PersonalizeSystemUsesLightTheme"="REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize\" /v \"SystemUsesLightTheme\" /t REG_DWORD /f /d 0"
 
I know this, what I'm talking about is that the changes made for the default user are not saved in regedit hives opened offline. to solve this, the cmd command is added in SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce. this works when the user logs in.
If you wanted the technical answer: New user provisioning, which happens right before the first logon, will ignore or clobber a wide range of HKCU settings which you may have added to Default User's NTUSER.DAT. The only workaround is to apply the changes after logon.

Try this simple experiment on a live system:
1. reg load C:\Users\Default\NTUSER.DAT
2. Confirm your settings are actually present in the hive.
3. reg unload NTUSER.DAT
4. From Settings, create a new Local Account. Switch or logon to this new user account.

Check which settings were followed in the new user profile, and which ones were ignored. That demonstrates the problem.
There doesn't be a formal explanation from MS, but customizing Default User's profile tends not to work with Desktop-related settings.
 
Yeah, that's why I added a few registry keys after installation
But no problem with those, settings in the image are applied correctly after installation
 
Back
Top