Export and Import IIS sites into a new IIS Server


I have a CAS server for exchange that has extra IIS sites on it.

I have a brand new CAS server i must import all of these extra sites into.

How does one do that?

Windows Server 2012
Exchange on premise 2013 CU19
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You have 2 ways:
1. Use Powershell Backup-WebConfiguration cmdlet:
restore to new server with Restore-WebConfiguration:
There is no difference in these cmdlets for 2008 and 2012 servers
2. Use "Shared configuration" in IIS properties:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
Taking advantage that you moved the exchange server.
You should deploy a web server where you can put all of those sites because is not a good practice to expose to the internet or to other sites your exchange server infrastructure.

You need to have all the files from the physical path, certificates and correct version of .NET to have them working on another server.
Assuming that they are simple HTML and it won't be web Application and unconnected to any database.

Run in a PowerShell elevated console this (on the source server):

Import-Module WebAdministration
 Get-ChildItem IIS:\Sites | select Name,State,Physicalpath,PSchildname -ExpandProperty bindings

Open in new window

you will get something like this:
You need to move physical path from source to target.
Also, Name should be the name of the site.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.