1. Get the dependencies of the Web site by running the followingcommand: msdeploy-verb:getDependencies -source:metakey=lm/w3svc/1

2. Review the output of the dependencies and look for any scriptmaps or installed components in use by the site. For example, if WindowsAuthentication is in use by the Web site, you will see <dependencyname=”WindowsAuthentication” />.

3. If your site is inheriting any script maps, these will not belisted in the dependencies and you should also review the script maps for yoursite manually.

4. Compile a list of the components needed on the destination.

Part 2 – Configure thetarget

1. Review the list of dependencies and install them on thedestination server.

For example, let’s assume you had the following in use for yourWeb site:

·ASP.NET

·Windows Authentication

·Anonymous Authentication

Based on this analysis of your dependencies, you would installthe corresponding components and modules.

Part 3a – Migrate your siteto the target by using a package file

1. Always make a backup of the destination server. Even if youare just testing, it allows you to easily restore the state of your server.

%windir%\system32\inetsrv\appcmd add backup “PreWebDeploy”

2. Run the following command on the source server to create apackage (compressed) file of the server:

Part 3b – Migrate your siteto the target by using the Web Deployment Agent Service

If you don’t want to use a package, you can use the WebDeployment Agent Service (MsDepSvc, also called “remote service”) tosynchronize from IIS 6.0 to IIS 7.

1. Install the remote service on either the source or thedestination depending on whether you want to synchronize from a remote sourceor to a remote destination.

2. Start the service on the computer.

net start msdepsvc

3. Run the following command to do a “push”synchronization from the local source to a remote destination (replace Server1 withthe name of the remote computer). Run the command first with the whatif flag,then without it once you have confirmed that the command will do what you want.

4. Alternatively, run the following command to do a”pull” synchronization from the remote source to the localdestination (replace Server1 with the name of the remote computer). Run thecommand first with the whatif flag, then without it once you have confirmedthat the command will do what you want.