Thursday 25 June 2009

Moving IIS Websites to a new server

Many people will sooner or later need to move there IIS web sites to a new server.
Either becuase of popularity and the need for more hardware, for clustering or even to virtualise the web server.
You can easily create a new web site on the new server and just copy over the original web site.
But what about permissions? what about all the configuration settings?
IIS offers a vbs script to copy a web site over to a new server.

1) to run the configuration copy script execute the following:
C:\WINDOWS\system32>iiscnfg.vbs /copy /ts [Target Server] /tu [Target Server username] /tp [Target Server Password]
this will backup your server and do the rest for you, including copy over the metadata.
(for more information on iiscnfg.vbs click here)

2) You will also need to manually copy over the actuall web site files, the iiscnfg script only copying over configuration

If you are exporting the configuration to a 64 bit iis server from a 32 bit server you will get a "Service unavailable" error when trying to access your web site. To more information to resolve this click here

No comments: