Set default registry keys in HKCU new user profile

I were using this method back in reduce ntuser.dat but this is such a big deal for new post.

I have this problem in Windows Server 2008 R2:
I have configured the application to run at user startup.
This means that explorer.exe is not loaded which cause very weird colour theme in new user profile.

To solve this situation you have to backup color pattern which you are satisfied with:
reg export "HKCU\Control Panel\Colors" "%userprofile%\Desktop\colors.reg"
Now lets modify new user default registry package:
Backup:
C:\Users\Default\NTUSER.DAT
Open regedit in "Run As Administrator" mode.

Select HKEY_LOCAL_MACHINE:
Go for [File] -> [Load Hive...]

Select C:\Users\Default\NTUSER.DAT

Set name like pillow
Now the pillow is loaded:
Go to Colors section and select [Copy Key Name]
Open colors.reg in notepad and replace:
HKEY_CURRENT_USER\Control Panel\Colors
with your key value for example:
HKEY_LOCAL_MACHINE\pillow\Control Panel\Colors
Remember to keep the square brackets! Save the file! At the end file looks like:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\pillow\Control Panel\Colors]
"Background"="58 110 165"
"Scrollbar"="212 208 200"
"ActiveTitle"="10 36 106"
"InactiveTitle"="128 128 128"
"Menu"="212 208 200"
"Window"="255 255 255"
"WindowFrame"="0 0 0"
"MenuText"="0 0 0"
"WindowText"="0 0 0"
"TitleText"="255 255 255"
"ActiveBorder"="212 208 200"
"InactiveBorder"="212 208 200"
"AppWorkspace"="128 128 128"
"Hilight"="10 36 106"
"HilightText"="255 255 255"
"ButtonFace"="212 208 200"
"ButtonShadow"="128 128 128"
"GrayText"="128 128 128"
"ButtonText"="0 0 0"
"InactiveTitleText"="212 208 200"
"ButtonHilight"="255 255 255"
"ButtonDkShadow"="64 64 64"
"ButtonLight"="212 208 200"
"InfoText"="0 0 0"
"InfoWindow"="255 255 225"
"ButtonAlternateFace"="181 181 181"
"HotTrackingColor"="0 0 128"
"GradientActiveTitle"="166 202 240"
"GradientInactiveTitle"="192 192 192"
"MenuHilight"="10 36 106"
"MenuBar"="212 208 200"
Now go [File] -> [Import...] and select colors.reg
Make sure something has been imported:

Select again pillow and go for [File] -> [Unload Hive...]

Delete all old user from computer:

use "Run As Administrator" mode.

No comments: