Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / IIS / IIS General Topics / July 2008

Tip: Looking for answers? Try searching our database.

How to replicate IIS (5.1) configuration from one box to another?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Geretz - 30 Jul 2008 04:08 GMT
What I'm trying to do is replicate an entire application environment from
one box (on which the environment is developed) onto a number of laptops so
the sales guys can show off the software in an environment which contains
pre-set application meta-data, sample data, etc. The entire environment
consists of

1. Database
2. Data Files
3. Web Applications

(The software is treated separately since we have a separate, production MSI
for the deployment of our production software.)

I'm using Wise Installer to package items 1, 2 and 3 into an MSI. Since
items 2 and 3 are a variably changing set of artifacts, it helps immensely
that Wise provides a wildcard facility so that I can specify to package all
files in a given folder structure into the MSI. As long as the artifacts are
restricted to a small number of well-known starting folder locations this
works.

So I can pick up all of my data file artifacts, and even all of my web
application *files* (i.e. ASPX, bin, etc.) using wildcards to specify to
pick up all files starting from a few folder locations on the source box.
What I can't do though, is use a wildcard to specify all virtual folders on
the source box, to be packaged for deployment. Our application is
open-ended, allowing for interface extensions to be written as external web
applications. This means that the guys who put the demo environment together
are continuously coming up with new web application extensions. References
to these web applications are picked up in the database and the physical
filesystem folders and files for these web applications are picked up by the
filesystem wildcard specification. The only piece I'm missing is the IIS
virtual folders themselves with their various application settings.

Since the target IIS environment will be a clone of the source, is there any
way that I can script this, or use a DOS command to export the IIS metadata
on the source machine, package it for deployment to the target and then
reimport it to IIS on the target in order to recreate the IIS environment
from the source on the target? Unless I can find some way to do this, I'll
need to contantly keep revising the Wise installation script as IIS virtual
directories are continuously created, modified and removed. I'd like to find
some way to port the IIS configuration from the source box onto the target
boxes without having to do this constant revision.

Thanks very much for any advice which you can provide!

Joseph Geretz
David Wang - 30 Jul 2008 19:07 GMT
> What I'm trying to do is replicate an entire application environment from
> one box (on which the environment is developed) onto a number of laptops so
[quoted text clipped - 42 lines]
>
> Joseph Geretz

You will have to script it yourself on IIS 5.1. It is not until IIS 7
that direct copying of IIS configuration between machines is supported
and possible (with some fixup).

//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Joseph Geretz - 30 Jul 2008 22:34 GMT
Hi David,

Thanks for your reply:

> You will have to script it yourself on IIS 5.1

Actually, I prefer the scripting approach since I need to implement this in
a way which can be automated without requiring user intervention.
(Basically, if the user needs to do anything other than clicking on the
'Next' button, this is beyond them ;-) Can you provide links to any examples
or documentation on how to do this?

Thanks,

Joseph Geretz

On Jul 29, 8:08 pm, "Joseph Geretz" <jger...@nospam.com> wrote:
> What I'm trying to do is replicate an entire application environment from
> one box (on which the environment is developed) onto a number of laptops
[quoted text clipped - 54 lines]
>
> Joseph Geretz

You will have to script it yourself on IIS 5.1. It is not until IIS 7
that direct copying of IIS configuration between machines is supported
and possible (with some fixup).

//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
David Wang - 31 Jul 2008 06:56 GMT
Sorry, there's no official documentation on how to do something like
copy IIS configuration. There's documentation on how to script IIS to
perform various tasks as well as all the properties one can use -- but
it is up to user understanding to put it all together.

Sample code illustrating how to script IIS programmatically:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Documentation on all the IIS Metabase Properties, some of which you'd
need:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/cde66
9f1-5714-4159-af95-f334251c8cbd.mspx?mfr=true


Basically, you're not going to find any function to replicate or even
anything close to what you want to do. But if you understand the API
well enough, you can use it to achieve what you want.

//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

> Hi David,
>
[quoted text clipped - 81 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.