Export and Import IIS sites into a new IIS Server

Hello,

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
ryanrusty30Asked:
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.

als315Commented:
You have 2 ways:
1. Use Powershell Backup-WebConfiguration cmdlet:
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ee790558(v=technet.10)
restore to new server with Restore-WebConfiguration:
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ee807819%28v%3dtechnet.10%29
There is no difference in these cmdlets for 2008 and 2012 servers
2. Use "Shared configuration" in IIS properties:
https://blogs.technet.microsoft.com/meamcs/2012/05/30/configuring-iis-7-5-shared-configuration/
0

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 CEE Solution Guide - CEO Faru Bonon ITCommented:
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:
 Screenshot_6.png
You need to move physical path from source to target.
Also, Name should be the name of the site.
0
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
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.