This tip is for Windows 2000 and up. Instructions for Windows NT 4.0 can be found at; http://support.microsoft.com/kb/146050. The following instructions are based on Windows 7. The steps may be different in other versions of Windows.
Since the instructions in this post will show how to edit the Windows registry I will post the standard Microsoft Support disclaimer.
Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows. * For Windows 7, follow the following instructions; http://windows.microsoft.com/en-US/windows7/Back-up-the-registry.
Okay, now with that out of the way we can get to editing the registry to make Windows do what we want. To make sure every new profile created on a machine gets specific user settings we will need to change the registry settings that are used to build all new profiles. The trick is first to understand where these default settings come from. Then when we know where they come from we need to be able to edit them and save them. Once that is done all new profiles will be created with whatever settings we want.
The location of where new profiles copy their user registry settings is located on the file system at %SystemDrive%\Users\Default\NTUSER.DAT in Windows 7 and Windows Vista, in Windows XP it is located at %SystemDrive%\Documents and Settings\Default User\NTUSER.DAT. Now that we know what file is copied to create all new profile user registry settings we just need a way to edit the settings. Well there’s a tool for that, it’s called Regedit.exe.
The trick with editing the default user profile registry settings is to first know that it is not available in Regedit.exe by default. We will need to load the NTUSER.DAT file into Regedit.exe to be able to edit the settings. Open Regedit.exe by going to Start and typing Regedit, then right-click the search result and select Run as administrator. If you are currently logged on with a non-administrator the User Account Control box will allow you to provide administrative credentials, otherwise click Yes in the UAC box.
When Regedit starts, navigate to HKEY_USERS and left click it.
Go to the menu and select File->Load Hive.For more information on loading Windows Registry hives; http://technet.microsoft.com/en-us/library/cc732157.aspx.
Browse to the NTUSER.DAT file based on which Windows version you are using and Open it. You will have to have, ‘show hidden and system files’ enabled in the folder options control panel. For more information; http://windows.microsoft.com/en-US/windows7/Show-hidden-files.
Give the hive a name, it does not matter what name you give it. Here I used Default Profile, but it could have been anything.
In Regedit, browse to HKEY_USERS->whatever hive name you gave. You now be able to edit the default user profile registrysettings. Remember to back them up first before editing!
When finished, go to the menu File->Unload Hive.
That’s it! Any settings you change in the loaded hive will be copied to ever new user profile that is created on that machine.
Thank you SOOO much! You have solved a problem that has been a thorn in my side for quite a while.
Thank you for the tutorial. Nice job. Can I copy a HKCU setting into temporary loaded hive, and if yes how do I copy the hkcu key to the loaded hive? Thank you
You are the magic man! This fixed a problem that has been niggling me for ages. Thank you!
This is the answer that defies all of those "expert" opinions that "You can't do that".
I would also like to know how to configure HKLM keys for the loaded Default User hive. Please give instructions!
HKLM is HKLM no matter what user. It's not tied to any specific profile.
Could not do it, got message after giving key name, cannot load: Error while loading hive.
My Registry will not load hive, I noticed my NTUSER file is type Textfile, I think this is the problem. Previously I tried to restore and import a saved registry.dat file and it would only load .reg files.
I am thinking I could convert this saved reg file from dat to reg, but i would need a converting program.
Any other ideas.
This started when I mistakenly deleted my Admin user profile, and am now on a temp user. I noticed on my Regedit User Profile I have a .bak file, it does not have the original file shown in it, but has a RunLogonScript entry. I tried to rename it without the .bak and also deleted the temp file, but on start up it just started with another temp file but also returned he original,bak file.
so let me get this straight> sometimes i can't figure out if the blog is showing me what i want to do.
i want to load windows 8 onto a machine, then customize the hell out of it. creating color themes, enlarging the font dpi etc.
then i want to save all of that information extraneous to the 'default profile' of the machine. i believe in profiles, it showed 32mb of data?? can i load that 32mb onto a new windows 8 installation, and not have to go through my process of setting up every new re-image the long way? It takes me about 30 minutes to get everything right, and i can create a beautiful desktop, but i know there is a faster way. i can translate instructions from any os, if someone would tell me im on the right track. thanks.
Actually if you are doing new OS deployments you would want to use and unattend.xml file and the Microsoft-Windows-Shell-Setup|CopyProfile component. You would logon with the built-in Administrator account and make your changes. Create the unattend.xml file
with Windows System Image Manager. Run Sysprep. Then when the CopyProfile is set to True the profile information will be copied to new profiles.
More information on CopyProfile is available here.
More information on OSD is available here.
My registry only loads 'Software' key for certain users within ntuser.dat file. It will not load the full registry hive. Any specific reason for that?
You mention at the top this is for Win 2000 and up, but how do I do this for Win 2000? I have no File option in the Registry Editor, the first option in the Menu bar is Registry, with only Import, Export and Connect options.
@Ken C - For win2000, use REGEDT32 which has more functionality than Regedit, although it lacks searching. In later versions of windows they combined REGEDT32 and Regedit into one.