Question : IIS6 to IIS7 while not replacing the IIS7 Default Site

I have sites in IIS6.  I removed the Default Site from IIS6 before Archiving the entire config using MSDEPLOY on lm/w3svc (config only, no content).

I want to keep my Default Site intact in IIS7, because it has my CA enrollment stuff all setup and in place.

When running MSDEPLOY on the IIS7 server to bring in the IIS6 config, it overwrites the entire IIS7 configuration and I am left with only the IIS6 sites.  The IIS7 default site is now gone.

Is there an "append" switch or a specific skip rule I can use to NOT delete the IIS7 default Web Site when importing the IIS6 sites using MSDEPLOY?

Thanks,
Ken

Answer : IIS6 to IIS7 while not replacing the IIS7 Default Site


OK, SOLVED myself and posting here for reference

1) Before Migrating the IIS6 sites into IIS7, perform a MSDEPLOY archive for the Default site:

msdeploy -verb:sync -source:appHostConfig="Default Web Site" -dest:archivedir=c:\archive disableLink:ContentExtension > msdeployarchive.log

2) Perform the IIS6 migration on the IIS7 server (http://learn.iis.net/page.aspx/427/migrate-from-iis-60-to-iis-70/)

3) Sync (import) the Default site back into IIS7

msdeploy -verb:sync -source:archivedir=c:\archive -dest:appHostConfig="Default Web Site" >msdeployarchive.log



Works GREAT, as long as you do not have a Default Web Site imported from IIS6.

Ken
Random Solutions  
 
programming4us programming4us