How to remove and rebuild a SMS 2003 secondary site

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows registry


When you try to install a secondary site from a parent site, the installation may stop responding, and it may take a long time for the parent site to report the unsuccessful installation. If the secondary site is deleted from the Systems Management Server (SMS) 2003 Administrator console of the parent site before the problem is reported, jobs that are still trying to install the secondary site may continue uninterrupted.


This issue may occur for several reasons, including but not limited to network issues and disk space issues.


Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To work around this issue, manually stop the secondary site installation and remove it from the targeted computer.

Note You must remove any old information from the installation, especially if you want to reuse the site code.

To manually stop and remove the failed secondary site, follow these steps:
  1. Click Start, point to All Programs, point to Systems Management Server, and then click SMS Administrator Console.
  2. Locate the Site Settings\Addressessubtree.
  3. Right-click the address for the failed secondary site, and then click Delete.
  4. To use the Preinst.exe tool on the SMS parent site to delete the failed secondary site from the database, follow these steps:
    1. On the SMS primary site (parent) computer, click
      Start, and then click Run.
    2. Type cmd in the
      Open box, and then click OK.
    3. At the command prompt, type cd\, and then press the ENTER key.
    4. Type cd sms\bin\i386\00000409, and then press the ENTER key.
    5. Type Preinst /DELSITE SiteCode
      , and then press the ENTER key.

      NoteSiteCode is the site code of the secondary site, and ParentCode is the site code of the parent site.
  5. To remove any pending or active jobs to a site, type
    Preinst /DELJOB SiteCode , and then press the ENTER key.

    NoteSiteCode is the site code of the secondary site. For more information about how to use the PREINST tool, click the following article number to view the article in the Microsoft Knowledge Base:
    212978 Description of Preinst.exe for Systems Management Server 2.0

  6. To make sure that the secondary site is completely removed, follow these steps:
    1. Make sure that no SMS or Winmgmt services are running on the computer, including the SMSBootstrap service. If these services are running, stop the services, and then change the Startup type to Manual.
    2. Use Registry Editor to make sure that the following SMS registry keys are removed:
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Executive
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Site_Component_Manager
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Bootstrap
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CLISVC
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Discovery_Data_Manager
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Lan_Sender
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Scheduler
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Site_Backup
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Software_Metering_Processor
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMS_Status_Manager
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\SMS Client
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\SMS Performance Data Provider
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\SMS Provider
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\SMS Remote Control
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\SMS Server
      • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\SmsClient
    3. Make sure that the following folders are removed:
      • X:\SMS
      • X:\SMSBootstrap.log
      • X:\SMSBootstrap.ini
      • X:\SMSBootstrap.pkg
      • %Winnt%\MS\SMS
      NoteX is the SMS installation drive.

      Note You may have to restart the computer to remove some of these files and folders.
    4. Make sure that the CAP_SiteCode and SMSPKGdrive$ shares and their corresponding folders are deleted from the client access point computers.

      NoteSiteCode is the site code of the secondary site, and drive is the drive letter.
    5. Make sure that any site-specific accounts or groups are deleted, including the SMS_SiteSystemToSiteServerConnection_sitecode and SMS_SiteToSiteConnection_SiteCode groups.

      NoteSiteCode is the site code of the secondary site.
    6. Remove the following objects from Internet Information Services (IIS) Manager (if they exist).

      Under Application Pools (only on IIS 6.0):
      • CCM Server Framework Pool
      • SMS Distribution Points Pool
      • SMS Management Point Pool
      • SMS Server Location Point Pool
      Under the default Web Site (on IIS 5.0 or IIS 6.0):
      • CCM_Incoming
      • CCM_Outgoing
      • CCM_System
      • SMS_DP_<package_share>
      • SMS_MP
      • SMS_SLP
    7. Restart the server.

      Note The server must be restarted to make sure that any of the SMS services that you deleted from the registry in step 6b are no longer running. If these services are still running when you try to reinstall the secondary site, the Setup program will try to remove these services, but the removal will fail because they are already gone from the registry.
After these items are removed, you can reuse the site code to reinstall the secondary site.

How to rebuild the secondary site

  1. Reinstall the secondary site. As soon as possible, the secondary site installation should be started to minimize the effect on clients.

    To speed the installation, see the "Installing a Secondary Site Using SMS Setup" topic in the SMS 2003 Deployment Guide . To obtain this guide, visit the following Microsoft Web site: This section explains how to set up the site directly from the CD-ROM. This step lets you bypass the 76 megabyte (MB)-network installation package and to install directly from the CD-ROM.

    Important If you use Standard security, verify that the correct accounts and passwords have been specified. Problems can be very difficult to diagnose and repair and may require that you repeat the procedure. To make sure of success, test the account beforehand. To do this, log on to the new primary site by using the specified account, and then connect to the secondary site's c$, d$, and admin$ shares. Create, read, and write to folders and files from the secondary site drives to the primary site drives and back again.
  2. Reconfigure the secondary site. Immediately after you install the secondary site and while the site configuration update is being propagated to the parent site, use the SMS Administrator MMC to configure settings that will prevent clients from having to unnecessarily change their configuration.

ID articolo: 828370 - Ultima revisione: 27 mag 2008 - Revisione: 1