Preventing Sysprep from Removing Default and Custom Desktop Icons and Shortcuts
This article was previously published under Q307543 On This PageSUMMARY
This article describes how to prevent the System Preparation tool (Sysprep) from removing default and custom desktop icons and shortcuts.
MORE INFORMATION
Sysprep for Windows XP cleans the desktop icons and shortcuts in an effort to reduce desktop clutter. This behavior is by design in Windows XP.
To modify this behavior with Sysprep, use one of the following methods.
To Disable Desktop CleanupImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows To disable desktop cleanup, modify the registry as follows before you run Sysprep:
To Delay Desktop CleanupTo delay desktop cleanup, you can modify the Winbom.ini file. Adding the following parameter to the [Shell] section of the Winbom.ini file delays desktop cleanup for seven days. After seven days, the Desktop Cleanup Wizards prompts the user to clean the desktop.
DelayCleanup=Yes (the default is No)
Place the Winbom.ini file in the Sysprep folder before you run the sysprep -factory command. This parameter specifies whether the first instance of desktop cleanup is delayed until seven days after the user first starts the computer.The first time the user starts the computer, any shortcuts that are installed in the Desktop folder (for example, %SystemDrive%:\Documents and Settings\Username\Desktop) are moved to the %SystemDrive%\Program Files subfolder that is specified by the DesktopShortcutsFolderName setting in the [DesktopShortcutsFolder] section of the Winbom.ini file. If no folder name is specified, the default location is the %SystemDrive%\Program Files\Program Shortcuts folder. If the initial cleanup is delayed, the Desktop Cleanup Wizard runs for the first time seven days after the first-run experience. This wizard helps the user place unused Windows desktop icons and folders in the Unused Desktop Items folder on the desktop. NOTE: If you are using the "buildmasstoragesection=Yes" setting, do not run both the sysprep -factory and sysprep -reseal commands with the Sysprep.inf file present. Running Sysprep with the "buildmassstoragesection=Yes" setting causes Sysprep to clean the mass storage section rather than build it (if it is run a second time); it will build the mass storage section during factory mode and clean the mass storage section when you run the sysprep -reseal command afterwards. NOTE: It is a good idea to use the registry method to completely disable desktop cleanup rather than use the DelayCleanup setting. For additional information about Sysprep for Windows XP, click the article number below to view the article in the Microsoft Knowledge Base: 282190 (http://support.microsoft.com/kb/282190/EN-US/) Description of New Features in Sysprep for Windows XP
| Article Translations
|

Back to the top
