Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The FTP service does not work and event ID 116 is returned when you install Windows Server 2003 by using Sysprep


View products that this article applies to.

Symptoms

When you install Microsoft Windows Server 2003 by using the System Preparation tool (Sysprep), you may not be able to start the File Transfer Protocol (FTP) service. Additionally, the following event is logged to the system event log:

Event ID: 116
Description: The service metabase path '\LM\MSFTPSVC\' could not be opened.

↑ Back to the top


Cause

This problem may occur in the following scenario:
  1. You install Windows Server 2003.
  2. You install Microsoft Internet Information Services (IIS) components -- either automatically, while the Windows Server 2003 Setup program is running or manually, after the Setup process is completed.
  3. You install the FTP service in factory mode by using the Sysprep tool with the -factory command-line switch, and by using a Winbom.ini file that is configured to install the FTP service.
  4. You reseal the system by using the Sysprep tool with the -reseal and the -nosidgen switches.
When you first use the Sysprep tool with the -factory switch, the IIS metabase is backed up. Then, when you install the FTP service in factory mode, information that the FTP service requires is added to the IIS metabase. When you use the Sysprep tool with the -reseal switch to prepare the system for the first user startup, the backed-up IIS metabase is restored. This backed-up IIS metabase replaces the metabase information that was added in factory mode. The backed-up IIS metabase does not contain the information that the FTP service requires, and therefore this information is missing from the final configuration. The missing information prevents the FTP service from starting successfully, and this scenario generates event ID 116.

↑ Back to the top


Resolution

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.


To resolve this problem, before you run the Sysprep tool with the -reseal and the -nosidgen switches, follow these steps:
  1. Delete the following registry value:
    HKEY_LOCAL_MACHINE\Software\Microsoft\INetStp\SysPrepIISInfoStage
    This action prevents the backed-up IIS metabase from being restored when you run the Sysprep tool with the -reseal and the -nosidgen switches.
  2. Clean up the files that are associated with the backed-up IIS Metabase. To do this, delete the following files, where %SystemRoot% is the folder where Windows is installed:
    • %SystemRoot%\IISSysPr.tmp
    • %SystemRoot%\system32\inetsrv\metaback\MDBackUp.md9999
    • %SystemRoot%\system32\inetsrv\metaback\MDBackUp.sc9999
Note To automate these steps, add the following sections to the Winbom.ini file before you use the Sysprep tool with the -factory switch:
[UpdateSystem]
	DelReg = UpdateSystem.DelReg
	DelFiles = UpdateSystem.Delfiles1, UpdateSystem.Delfiles2
 
	[UpdateSystem.DelReg]
	HKLM, "Software\Microsoft\INetStp", "SysPrepIISInfoStage"
 
	[UpdateSystem.DelFiles1]
	MDBackUp.md9999, 0x00000001
	MDBackUp.sc9999, 0x00000001
 
	[UpdateSystem.DelFiles2]
	IISSysPr.tmp, 0x00000001
 
	[DestinationDirs]
	UpdateSystem.Delfiles1 = 11,"\inetsrv\MetaBack" ; LDID 11 = %SystemRoot%\system32
	UpdateSystem.Delfiles2 = 10 ; LDID 10 = %SystemRoot%

↑ Back to the top


Workaround

To work around this problem after it has already occurred, follow these steps:
  1. Use the Add or Remove Programs tool in Control Panel to remove the FTP service.
  2. Use the Add or Remove Programs tool to install the FTP service.
For additional information about how to set up an FTP Server in Windows Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:
323384 HOW TO: Set up an FTP Server in Windows Server 2003

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.

↑ Back to the top


More information

For more information about the Sysprep tool and about the Winbom.ini file, see the Ref.chm Help file in the Support\Tools\Deploy.cab file on your Windows Server 2003 CD-ROM. For additional information, visit the following Microsoft Web site: For additional information about a similar issue on a different operating system, click the following article number to view the article in the Microsoft Knowledge Base:
827385 IIS settings are missing after you run Sysprep with the -nosidgen command-line switch

↑ Back to the top


Keywords: KB834377, kberrmsg, kbprb

↑ Back to the top

Article Info
Article ID : 834377
Revision : 4
Created on : 10/30/2006
Published on : 10/30/2006
Exists online : False
Views : 217