Microsoft KB Archive/252158
Article ID: 252158
Article Last Modified on 1/25/2006
- Microsoft Metadirectory Services 2.1
This article was previously published under Q252158
When you automate the Viacompact process by using a batch file that stops the Zoomit VIA service with a net command, and then immediately starts the Viacompact utility in Unattended mode from the command line, the follow error message may occur in the Compact ASN database phase:
This issue can occur if the service is not completely stopped before the Viacompact utility starts. When the Zoomit VIA service is running as expected, you cannot run the Viacompact utility. In this case, the service is in the process of being stopped; therefore, the Viacompact utility does not detect that the service is running until the it tries to rename the database file.
To resolve this issue, create a batch file that includes a sleep operation that runs for 90 seconds to ensure that the service is completely stopped. You can use the Sleep.exe command-line utility that is available in the Microsoft Windows NT 4.0 Resource Kit and the Microsoft Windows 2000 Resource Kit. The batch file can call this utility to set a sleep time in seconds. You can also use another scripting language with a built-in sleep function.
This following text is an example of a batch file that may generate the error message described in the "Summary" section:
net stop "zoomit server"
c:\zoomserv\bin\viacompact.exe -unattended -start
net start "zoomit server"
When this issue occurs, the X500.db file may be truncated. It is recommended that you completely back up the server that is running Microsoft Metadirectory Services (MMS) before you run the Viacompact utility.
For additional information about how to schedule Viacompact or MMScompact to run on a routine basis, click the article number below to view the article in the Microsoft Knowledge Base:
251019 How to Schedule Viacompact to Run on a Routine Basis
For additional information about how to use the Viabackup or MMSbackup utility, click the article number below to view the article in the Microsoft Knowledge Base:
250392 Using the Viabackup Tool in Microsoft Metadirectory Services
Additional query words: MMS Metadirectory Zoomit Sleep exe
Keywords: kberrmsg kbprb KB252158