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

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 off
setlocal
If exist %TEMP%\DESKTOP.TMP del /q %TEMP%\DESKTOP.TMP
set Ipath="C:\Documents and Settings\Default User\My Documents\Desktop.INI"
call :RemOwner
set Ipath="C:\Documents and Settings\Default User\My Documents\My Music\Desktop.INI"
call :RemOwner
set Ipath="C:\Documents and Settings\Default User\My Documents\My Pictures\Desktop.INI"
call :RemOwner
endlocal
goto :EOF
:RemOwner
attrib -H -S %Ipath%
Findstr /b /i /v /l /c:Owner= %Ipath% >>%TEMP%\DESKTOP.TMP
copy %TEMP%\DESKTOP.TMP %Ipath%
del /q %TEMP%\DESKTOP.TMP
attrib +H +S %Ipath%

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



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish