Using msdeploy to move websites from IIS6 to IIS7

I recently needed to migrate 7 different websites, with content, from IIS6 to IIS7.
Rather than copy everything by hand, and re-setup all the site bindings, and data sources, I decided to try using msdeploy, from

From the old server running IIS6, I ran this command first:
msdeploy -verb:getDependencies -source:webserver60
This displays all site dependencies for the IIS6 server. You need to make sure that all dependencies are installed on the new destination server. **

After insuring that all dependencies were installed, I issued this command from the new IIS7 server, to see what would happen without *actually* changing anything:
msdeploy -verb:sync -source:webserver60,computerName='MACHINENAME',authType='NTLM',userName='MACHINENAMEadministrator'
,password='password' -dest:auto <strong>-whatif</strong> > msdeploysync.log

Then, to actually fire the command, and migrate the websites, I ran this:
msdeploy -verb:sync -source:webserver60,computerName='MACHINENAME',authType='NTLM',userName='MACHINENAMEadministrator'
,password='password' -dest:auto > msdeploysync.log

YMMV, I’ll try to help if you get stuck. Let me know how it goes.

** Also, here’s the link I used to install ASP.Net 1.1 on Windows Server 2008. Thanks, Bill. You rock.

2 thoughts on “Using msdeploy to move websites from IIS6 to IIS7

  1. Howdy, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam comments? If so how do you prevent it, any plugin or anything you can suggest? I get so much lately it’s driving me mad so any assistance is very much appreciated.

    1. Well Cyrus, let me tell you. First, your spammy posts get looked at by cloudfront, then razor, something sorta like DCC, and amavisd-ng. THEN, when you’ve done your homework, and cleaned up your pathetic attempts at freely advertising on my personal blog, and they actually make it through all of that, Akismet tells me that your posts are BS. So, I removed all of your links, and posted your comment, so I could smart-assedly answer. I just haven’t had the time until now.
      Merry Christmas, homeslice. ;) And give it up. You can haz no cheeseburger.

Comments are closed.