Migrating a Web Server to IIS 5.0 |
Copying files and directories is simple enough; however, share information isn’t maintained in Windows directories, but rather in the registry, under LanmanServer. To preserve share information, you must also replicate this registry information from the source server currently hosting the shared files and directories, to the destination computer, as follows:
Note The action described next will destroy any existing shares on the destination computer. Be sure to back up the registry before you begin.
Using the following registry key, save the source computer registry settings for shares to a file. Use Regedt32.exe, and not Regedit.exe, to edit the registry.
HKEY_LOCAL_MACHINE
\System
\CurrentControlSet
\Services
\LanmanServer
\Shares
Copy the resulting settings file to the destination computer and then use the following registry key to restore the share settings to the destination server from this file. The settings will take effect after you restart the computer.
HKEY_LOCAL_MACHINE
\System
\CurrentControlSet
\Services
\LanmanServer
\Shares
Caution Do not use a registry editor to edit the registry directly unless you have no alternative. The registry editors bypass the standard safeguards provided by administrative tools. These safeguards prevent you from entering conflicting settings or settings that are likely to degrade performance or damage your system. Editing the registry directly can have serious, unexpected consequences that can prevent the system from starting and require that you reinstall Windows 2000. To configure or customize Windows 2000, use the programs in Control Panel or Microsoft Management Console (MMC) whenever possible.