Preventing Sysprep from Removing Default and Custom Desktop Icons and Shortcuts

Article translations Article translations
Article ID: 307543 - View products that this article applies to.
This article was previously published under Q307543
Expand all | Collapse all

On This Page

SUMMARY

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 Cleanup

Important 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 How to back up and restore the registry in Windows

To disable desktop cleanup, modify the registry as follows before you run Sysprep:
  1. Start Registry Editor (Regedit.exe).
  2. Locate and click the following key in the registry:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
  3. On the Edit menu, point to New, click Key, and then type OemStartMenuData in the Key name box.
  4. Click the OemStartMenuData key that you made, point to New on the Edit menu, click DWORD Value, and then add the following registry value:
    Value name: OemDesktopCleanupDisable
    Value data: 1 (decimal)
  5. Quit Registry Editor.
NOTE If you use this method, the Microsoft Internet Explorer, MSN Explorer, and Microsoft Windows Media Player icons also appear on the desktop.

To Delay Desktop Cleanup

To 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 Description of New Features in Sysprep for Windows XP

Properties

Article ID: 307543 - Last Review: August 6, 2002 - Revision: 1.2
APPLIES TO
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
Keywords: 
kbenv kbinfo kbsetup KB307543

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com