There are numerous articles which talk about the easiest ways of migrating the websites from IIS 7.X to a higher version of IIS using WebDeploy.
This blog illustrates one of the ways to migrate the sites from IIS 7.X to higher version of IIS, when the content drive of the Source machine is not present in the destination.
Example: On the source box, if the Website is pointing to the physical path C:\FolderName and the requirement is to either point the website to the "D:\" drive on the destination box or if "C:\" dive is not present on the destination.
Make sure that the WebDeploy is installed on the source box and the destination box.
Steps to be followed:
1. On the source box firstly check the dependencies of the concerned web site navigating to the location where webdeploy is installed and running the below command:
3.Since the requirement here is to move the contents from C:\ drive on source machine to D:\ drive on the destination machine. We first need to find the configuration of the web site by running the "dump" operation.
4. We then need to go through the XMLinfo.log and identify the configuration of the website which are dependent on the C:\ drive. Please see the small portion of the output of the xmlinfo.log file taken from my box: