Easily migrate IIS6 sites to IIS7 with remote service
April 22, 2009 – 15:44 by Hannes Van de VelHere’s a quick howto on how to migrate IIS6 sites to IIS7.
- Install the Web Deployment Tool (x64/x86) on both the source as destination IIS machine. Select a custom install on the source machine and choose to install the remote service as well. On the destination machine you can take the standard install. Start the service on the source machine:
net start msdepsvc. Full installation guide on http://learn.iis.net/page.aspx/421/installing-the-web-deployment-tool/. - Check dependencies; make sure you have all required IIS features installed on the destination machine (like authentication, logging, etc). In my case I didn’t need any adjustments, since pretty much of all features were installed on the destination machine. You can check the dependencies per site (full guide here: http://learn.iis.net/page.aspx/427/migrate-from-iis-60-to-iis-70/ part 1)
- Migrate by running this on the destination machine;
cd C:\Program Files\IIS\Microsoft Web Deploy msdeploy -verb:migrate -source:metakey=lm/w3svc/12345,computerName=sourcemachinename -dest:metakey=lm/w3svc/12345 >> msdeploymigrate.log
Repeat the msdeploy command for each site. Replace sourcemachinename with the actual hostname of your source machine and 12345 with the actual site id to migrate. Repeat this step for each site you want to migrate. Check the log for errors. You can do a ‘dry-run’ by adding
-whatif(for example:msdeploy -verb:migrate -source:metakey=lm/w3svc/12345,computerName=sourcemachinename -dest:metakey=lm/w3svc/12345 -whatif >> msdeploymigrate.log) - Full how-to on http://learn.iis.net/page.aspx/427/migrate-from-iis-60-to-iis-70/ or http://blogs.iis.net/bills/archive/2008/06/18/how-to-migrate-from-iis-6-to-iis-7.aspx