JSI Tip 7056. The Desktop.ini file does not work correctly when you create a Default User profile in Windows XP?

Jerold Schulman

August 12, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When you use Control Panel / System / Advanced / User Profiles / Settings to Copy a pre-configured profile to the Default User profile, the shell customization feature for My Documents and its' sub-folders are NOT applied to new users. The My Documents, My Pictures, and My Music folders for new users are labeled with a different user's logon name.

If you don't want to use Sysprep, I have scripted JSIprep.bat to remove the Owner= entry from the [DeleteOnCopy] section of the Desktop.ini files in the above folders. Running JSIPrep.bat prior to any new user logging on will resolve the problem.

JSIprep.bat contains:

@Echo offsetlocalIf exist %TEMP%DESKTOP.TMP del /q %TEMP%DESKTOP.TMPset Ipath="C:Documents and SettingsDefault UserMy DocumentsDesktop.INI"call :RemOwnerset Ipath="C:Documents and SettingsDefault UserMy DocumentsMy MusicDesktop.INI"call :RemOwnerset Ipath="C:Documents and SettingsDefault UserMy DocumentsMy PicturesDesktop.INI"call :RemOwnerendlocalgoto :EOF:RemOwnerattrib -H -S %Ipath%Findstr /b /i /v /l /c:Owner= %Ipath% >>%TEMP%DESKTOP.TMPcopy %TEMP%DESKTOP.TMP %Ipath%del /q %TEMP%DESKTOP.TMPattrib +H +S %Ipath%

NOTE: See Sysprep doesn't consistently apply per-user settings from the Winbom.ini file?



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like