Tray on the Web
The ramblings of an IIS/SharePoint Admin and Margarita Connoisseur

Using the Web Deployment Tool to migrate from IIS 6 to IIS 7

Wednesday, October 07, 2009 3:23 PM

 

 

Install MS Deploy on the source IIS 6 Web server

  1. Install the web deployment tool on the source IIS 6 server.  Run the appropriate install package (x86 or x64).
  2. Select Custom for the setup type.
  3. On the Custom Setup page, click the Install the remote agent service down arrow, select Will be installed on local hard drive, then click Next.
  4. Complete the install.
  5. Set the Web Deployment Agent Service to automatic and start it.

 

Install MS Deploy on the destination IIS 7 Web server

  1. Run the appropriate install package (x86 or x64)
  2. Choose Typical for the setup type
  3. Complete the install

 

Migrate website

  1. Run the following command on the source (IIS 6) server:
    1. msdeploy -verb:sync -source:metaKey=/lm/w3svc/site# -dest:auto,computername=SERVERNAME -enableLink:appPool
  2. Replace site# with the site ID of the website you are trying to migrate.  You can find the site ID # by opening Inet Manager, clicking on Web Sites, and view the number listed next to your website in the Identifier column
  3. Replace the value for SERVERNAME with the name of the destination server.
  4. If you need to change the home directory on the destination server, you will need to use a replace rule.  Below is a fully functional example.  In this scenario I am migrating the site Prismstaging.stewart.com from an IIS 6 box to the new web server SERVER05D.  Since the old server has a D: drive and SERVER05D has an E: drive, I need to use the replace rule to change the home directory on the destination.  
  5. msdeploy -verb:sync -source:metaKey=/lm/w3svc/43148251 -des:auto,computername=SERVER05D -enableLink:appPool -replace:objectname=metaproperty,scopeattributename=name,scopeAttributeValue=Path,targetAttributename=value,match=d:\\test.website.com,replace=e:\test.website.com

Feedback

No comments posted yet.


Post a comment