{"id":27783,"date":"2007-03-02T10:00:00","date_gmt":"2007-03-02T10:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2007\/03\/02\/the-default-user-is-not-the-default-user\/"},"modified":"2007-03-02T10:00:00","modified_gmt":"2007-03-02T10:00:00","slug":"the-default-user-is-not-the-default-user","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20070302-00\/?p=27783","title":{"rendered":"The .Default user is not the default user"},"content":{"rendered":"<p>If you ever gone spelunking in the <code>HKEY_USERS<\/code> registry key, you&#8217;ve no doubt found the user named <code>HKEY_USERS\\.Default<\/code>. Who is this guy?\n Despite its name, the profile for the .Default user is not the default user profile. It&#8217;s actually the profile for the Local System account and is an alias for <code>HKEY_USERS\\S-1-5-18<\/code>. (<a href=\"http:\/\/technet2.microsoft.com\/WindowsServer\/en\/library\/86cf2457-4f17-43f8-a2ab-7f4e2e5659091033.mspx\"><code>S-1-5-18<\/code> is the security identifier for the Local System account<\/a>.) Consequently, settings in <code>HKEY_USERS\\.Default<\/code> are used by programs and services that run as Local System. The most visible examples of programs that run as Local System are <code>winlogon<\/code> and <code>logonui<\/code>, the programs that display the interface for logging onto the system. Whatever color scheme and screen saver you choose for the Local System profile get used at the logon screen.\n Unfortunately, the name <code>.Default<\/code> has led people to believe that this user&#8217;s settings are the basis for new user profiles. In retrospect, calling it <code>.Default<\/code> was probably a bad decision. It just gave people the wrong idea. Here&#8217;s one customer that was faked out:<\/p>\n<blockquote class=\"q\"><p> I&#8217;m setting the values in <code>HKEY_USERS\\.Default\\International<\/code> but when I create a new user, that user doesn&#8217;t pick up those settings. I&#8217;m stumped. <\/p><\/blockquote>\n<p> The registry settings for new users do not come from the <code>.Default<\/code> user. Rather, they come from what I&#8217;ve started calling the &#8220;template user&#8221;, which is kept&dagger; in the file <code>C:\\Documents and Settings\\Default User\\ntuser.dat<\/code>. This hive is not loaded most of the time (since there&#8217;s no reason to waste memory on something that is needed only rarely), so if you want to make a change to the template user, you&#8217;ll have to load the hive manually.\n Mind you, messing with the template user hive directly is most likely not supported. The supported way of modifying the template user hive on Windows&nbsp;XP is to use the system preparation tool &#8220;SysPrep&#8221;. Boot into factory mode, make your customizations to the current user, then reseal. The resealing process propagates the current user&#8217;s settings to the template user (or, more specifically, the ones that can safely be propagated to the template user&mdash;you don&#8217;t want to propagate things like encryption keys) before &#8220;resealing&#8221; the system for deployment.\n (No, I don&#8217;t know what the mechanism is for Windows Vista.)\n <b>Nitpicker&#8217;s corner<\/b><\/p>\n<p> &dagger;s\/which is kept\/which is typically kept on US-English systems\/ <\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you ever gone spelunking in the HKEY_USERS registry key, you&#8217;ve no doubt found the user named HKEY_USERS\\.Default. Who is this guy? Despite its name, the profile for the .Default user is not the default user profile. It&#8217;s actually the profile for the Local System account and is an alias for HKEY_USERS\\S-1-5-18. (S-1-5-18 is the [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-27783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>If you ever gone spelunking in the HKEY_USERS registry key, you&#8217;ve no doubt found the user named HKEY_USERS\\.Default. Who is this guy? Despite its name, the profile for the .Default user is not the default user profile. It&#8217;s actually the profile for the Local System account and is an alias for HKEY_USERS\\S-1-5-18. (S-1-5-18 is the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/27783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=27783"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/27783\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=27783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=27783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=27783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}