Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an already configured IIS on a Windows Server 2008 SP2.

I would like to replicate the same configuration on a brand new IIS installed on another 2008 SP2 server. Of course the hostname and IP will change, but the other machine configurations are the same.

How do I copy the configuration from the first server to the new server?

share|improve this question
add comment

3 Answers 3

Most configuration settings for IIS 7+ are in one file:

%systemroo%\System32\inetsrv\config\applicationHost.config

You can try just copying this file from one server to another. Make a backup of the target file first.

Certain settings in this file are machine specific:

  • The sessionKey values under configProtectedData,
  • When using Client Certificates, passwords under security authentication

If you have made changes to the machine.config and global web.config files, you may need to apply them to your new server as well.

The few IIS settings still in the registry are usually only-non-default if you changed them yourself in the registry. If you haven't, you can ignore them.

share|improve this answer
add comment

If you have application pool, password are encrypted using per machine key. I blogged about it here

Supported way: Export configuration:

aspnet_regiis -px "iisConfigurationKey" "C:\iisConfigurationKey.xml" -pri 
aspnet_regiis -px "iisWasKey" "c:\iisWasKey.xml" –pri

Import on target:

aspnet_regiis -pi "iisConfigurationKey" "C:\iisConfigurationKey.xml" 
aspnet_regiis -pi "iisWasKey" "C:\iisWasKey.xml"
share|improve this answer
add comment

I would use Microsoft Web Deploy.

share|improve this answer
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. –  ETL Mar 7 at 4:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.