Why is (Almost) Everybody Wrong About HKU\.Default?

Most technical folks have stumbled across the registry hive HKEY_USERS\.Default at some point. Many of them think they know what it is used for. Interestingly, most who do are wrong.

The misconception about what HKU\.Default is used for dates back to the good old days when Windows NT 4.0 was still considered “new technology”. This misconception has been, and still is, passed on to future generations by means of books, magazine articles, blog entries and geek talk. It is, in my humble opinion, so widespread, that I would bet that 50% of those who think they know the correct meaning are, in fact, wrong.

What Most Think

Supposedly, HKU\.Default is the registry hive of the default user profile. The default user profile (typically located in C:\Users\Default) sits in the user profile base folder and is used as a template for new user profiles. Whenever a user logs on who has an empty or non-existent profile the system basically copies the default user profile to a new folder and makes that the user’s new profile. Since every registry setting stored in the default user profile gets copied into every new user profile, many administrators think it is a good idea to modify the default user’s registry. I don’t. But that is a topic for another article.

Of the many admins that modify the default user profile’s registry, some are proud enough of this “feat” to publish what they do and how they do it. This is how the myth gets carried on. Type “HKU.Default” in the search engine of your choice. Way too many of the results point to registry scripts that try to do exactly what I have described.

The Truth

The settings stored in the registry hive HKU\.Default are used by the logon desktop. That desktop is, of course, shown to give users the ability to log on to their system. Want to have the Num Lock key turned on when users enter their credentials? Go to HKEY_USERS\.DEFAULT\Control Panel\Keyboard and change the value InitialKeyboardIndicators from 0 to 1. Don’t believe me? Try it out! The hive HKU\.Default is stored in %SystemRoot%\system32\config\default (no extension). This is a very different location from the default user profile’s registry file which is stored in the file NTUSER.DAT inside the profile directory (typically in C:\Users\Default).

Comments

Related Posts

Another IT Legend

Some time ago I wrote about a misconception so common that it might pass as an IT legend - the confusion of HKU\.Default with the default user’s registry hive. Recently I came across another interesting misapprehension. As you know, the profiles base directory (usually C:\Documents and Settings) contains not only one special sub-folder, Default User, but also All Users, whose purpose is well-known: When Explorer builds the start menu and the desktop it pulls entries both from the logged-on user’s profile and from the all users folder. That is, by the way, the reason why standard users (i.e. non-admins) cannot modify some of the icons on the desktop and in the start menu - those that reside in the All Users folder, which is writeable only for administrators.
User Profiles

Free Script: User Profile Domain Migration with SetACL

This article is part of Helge’s Profile Toolkit, a set of posts explaining the knowledge and tools required to tame Windows user profiles. When administrators migrate user accounts between domains, they typically re-ACL those server resources users have access to. In plain English: they copy or move the permissions from the accounts of the old domain to the corresponding accounts of the new domain. There are various ways to do that. In this article, I present a simple way to re-ACL roaming user profiles.
User Profiles