All Customizations to Default User Profile Lost

You set the CopyProfile property to TRUE in an unattended .XML answer file and run sysprep.exe using the steps in Microsoft Knowledge base article KB973289 to copy the customizations in the current user profile to the Default User profile for a computer running Windows Vista or later. However, you find that the customizations (e.g background desktop, desktop shortcuts, screensaver, etc.) do not appear when you log on as a new user after running sysprep.
This behavior may occur when multiple user profile accounts exist in Windows.

Delete all the user account profiles except the Administrator built-in account using the User Accounts control panel and make the customizations using the local Administrator built-in user account.

During the 'Specialize phase' of Sysprep, Sysprep.exe looks at the Last Modified Date of the ntuser.dat file for each user profile to determine which user profile to copy to the default user profile. However, the earlier cleanup functions of sysprep.exe loads each Ntuser.dat file to make security ID (SID)generalizations. You cannot predetermine which user profile will be copied if more than one user profile exists.

You can confirm which user profile was copied to the Default user profile by opening the file %systemroot%\panther\unattendgc\setupact.log and searching for lines similar to the following (in the 'specialize' pass):
   [shell unattend] CopyProfileDirectory from c:\Users\Administrator succeeded.
   [shell unattend] CopyProfile succeeded.

In this example, the built-in local Administrator account was copied to the default user profile.

See the following Knowledge Base article for more information about customizing the Default User Profile:

973289 How to customize default user profiles in Windows 7 and in Windows Server 2008 R2;EN-US;973289

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2101557 - Last Review: 05/28/2010 17:05:00 - Revision: 1.0

Windows 7 Enterprise, Windows 7 Professional, Windows 7 Ultimate, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Standard, Windows Vista Business, Windows Vista Enterprise, Windows Vista Ultimate, Windows Server 2008 Datacenter, Windows Server 2008 Enterprise, Windows Server 2008 Standard

  • KB2101557