Microsoft KB Archive/321281

= The Desktop.ini File Does Not Work Correctly When You Create a Custom Default Profile =

Article ID: 321281

Article Last Modified on 12/1/2007

-

APPLIES TO


 * Microsoft Windows XP Professional
 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional x64 Edition

-



This article was previously published under Q321281



SYMPTOMS
If you start the System tool in Control Panel, click the Advanced tab, click Settings under User Profiles, and then copy a preconfigured user's profile to the Default User profile, the customization feature of the Windows shell for the My Documents folder and subfolders is lost for all new users. The My Documents, My Pictures, and My Music folders for new users are labeled with a different user's logon name when a new user views the folders by using Windows Explorer.

The supported method of building a customized profile for deployment purposes is to use the Sysprep tool. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

314472 Quick Guide to Preinstalling Windows



CAUSE
By default, the My Documents, My Music, and My Pictures folders are customized by using the Desktop.ini file and the &quot;Owner=&quot; setting when a new user first logs on. The &quot;Owner=&quot; setting is set to the new user's logon name.

In the example in this article, the Administrator account was copied to the Default User folder. Because the Default User profile was updated with a different user's profile, the customization feature does not run for the My Documents, My Music, and My Pictures folders, and the &quot;Owner=&quot; setting in the Desktop.ini file is not updated. You must manually update the Desktop.ini file before new users log on to the computer.



RESOLUTION
To make sure that each user receive the generic customization of the My Documents, My Music, and My Pictures folder, you must delete the &quot;Owner=Administrator&quot; entry in the [DeleteOnCopy] section. Note that the Desktop.ini file is marked with the System and Hidden attributes. You must maintain these attributes. You can use the notepad desktop.ini command at a command prompt to modify the Desktop.ini file.



MORE INFORMATION
If you view the My Documents folder from a command prompt, customization from the Desktop.ini file is not used. This simplifies the update process.

Folder listings from a command prompt:

E:\Documents and Settings\Default User>dir /a /b

Application Data

Cookies

Desktop

Favorites

Local Settings

My Documents

Nethood

Ntuser.dat

Ntuser.dat.log

Ntuser.ini

PrintHood

Recent

SentTo

Start Menu

Templates

UserData

E:\Documents and Settings\Default User>dir /a /b &quot;my documents&quot;

Desktop.ini

My Music

My Pictures

Desktop.ini

[DeleteOnCopy]

Owner=Administrator

Personalized=5

PersonalizedName=My Documents

E:\Documents and Settings\Default User>dir /a /b &quot;my documents\my music&quot;

Desktop.ini

Sample Music.lnk

Desktop.ini

[DeleteOnCopy]

Owner=Administrator

Personalized=5

PersonalizedName=My Music

E:\Documents and Settings\Default User>dir /a /b &quot;my documents\my pictures&quot;

Desktop.ini

Sample Pictures.lnk

Desktop.ini

[DeleteOnCopy]

Owner=Administrator

Personalized=5

PersonalizedName=My Pictures

