Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

batch-adding multiple websites

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Framework 1.1 and 2.0  
Author Message
daniel2

External


Since: Jun 18, 2004
Posts: 15



(Msg. 1) Posted: Wed Oct 18, 2006 8:08 am
Post subject: batch-adding multiple websites
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi, I would like to add a batch of 80+ website identities in IIS6. I normally
add a website manually in the IIS Manager, but for such a large volume of
domains I really need an easier way.

Is there a script I can run or an import procedure in IIS somewhere? I have
searched online and in the documentation but to no avail.

Any help appreciated, thank you in advance,
-Daniel

 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 2972



(Msg. 2) Posted: Wed Oct 18, 2006 10:43 am
Post subject: Re: batch-adding multiple websites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

Adsutil.vbs can be used to create websites, and do more advanced settings:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/d3df4

iisweb.vbs can be used to create websites:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/aee71

You can also use ADSI or WMI to create websites programatically, see the
IIS SDK for more information on this:
http://windowssdk.msdn.microsoft.com/en-us/library/ms525568.aspx


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


Daniel wrote:

>Hi, I would like to add a batch of 80+ website identities in IIS6. I
>normally
>add a website manually in the IIS Manager, but for such a large volume of
>domains I really need an easier way.
>
>Is there a script I can run or an import procedure in IIS somewhere? I have
>searched online and in the documentation but to no avail.
>
>Any help appreciated, thank you in advance,
>-Daniel

 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
daniel2

External


Since: Jun 18, 2004
Posts: 15



(Msg. 3) Posted: Thu Oct 19, 2006 4:00 am
Post subject: Re: batch-adding multiple websites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Kristofer, that was a help. I have tried the iisweb.vbs and
successfully added a website. Am I right in thinking though that you can only
pass one domain using "/d". I would expect to be able to add several domains
at the same time, eg :

cscript iisweb.vbs /create c:\example "example" /b 80 /i 127.0.0.1 /d
example.com www.example.com examples.com www.examples.com

Is there a way to do this?! Or even create the site and then add the other
domains to it?

I have seen your "Append a host header" code but I do not have the
capability to run it.

Thanks again!
 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 2972



(Msg. 4) Posted: Thu Oct 19, 2006 6:14 am
Post subject: Re: batch-adding multiple websites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What exactly do you want to do? You said you wanted to add multiple
websites, but now you seem to be talking about adding host header values
to one website.

Do you want one website with multiple host headers, or do you want
multiple websites?


--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


Daniel wrote:

>
>Thanks Kristofer, that was a help. I have tried the iisweb.vbs and
>successfully added a website. Am I right in thinking though that you can
>only
>pass one domain using "/d". I would expect to be able to add several
>domains
>at the same time, eg :
>
>cscript iisweb.vbs /create c:\example "example" /b 80 /i 127.0.0.1 /d
>example.com www.example.com examples.com www.examples.com
>
>Is there a way to do this?! Or even create the site and then add the other
>domains to it?
>
>I have seen your "Append a host header" code but I do not have the
>capability to run it.
>
>Thanks again!
 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
daniel2

External


Since: Jun 18, 2004
Posts: 15



(Msg. 5) Posted: Thu Oct 19, 2006 6:28 am
Post subject: Re: batch-adding multiple websites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi again, sorry for the confusion. I do wish to add several websites, but
for each site there will also be multiple host headers. So I need to add
"www" versions as well as those without "www", as well as a few alternative
host names PER site (eg examples.com, example.com etc as well as some
hyphenated versions)

I hope this makes sense and there's something I can do!

thank you again
 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 2972



(Msg. 6) Posted: Thu Oct 19, 2006 7:33 am
Post subject: Re: batch-adding multiple websites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The easiest way to do this is probably to add the websites using
iisweb.vbs and after this modify the ServerBindings property to include
all the domain names using adsutil.vbs.



--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


Daniel wrote:

>
>Hi again, sorry for the confusion. I do wish to add several websites, but
>for each site there will also be multiple host headers. So I need to add
>"www" versions as well as those without "www", as well as a few alternative
>host names PER site (eg examples.com, example.com etc as well as some
>hyphenated versions)
>
>I hope this makes sense and there's something I can do!
>
>thank you again
 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
daniel2

External


Since: Jun 18, 2004
Posts: 15



(Msg. 7) Posted: Fri Oct 20, 2006 9:11 am
Post subject: Re: batch-adding multiple websites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Kristofer, yes it looks like that should help. I've tried adsutil now and,
with some scripting, it looks like I'll be able to use the two in conjunction
and automate the task.

So thanks very much!

-Daniel
 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 8) Posted: Sat Oct 21, 2006 3:12 am
Post subject: Re: batch-adding multiple websites [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can use the IIS Migration Wizard from Microsoft to move the IIS
configuration onto IIS6 from another IIS server. And then handle the
rest of the site content/configuration yourself.

How exactly are you searching for the answer? I just put in:
IIS Migration site:microsoft.com

And the right answer came back as the first hit...


//David
http://w3-4u.blogspot.com
//


Daniel wrote:
> Hi, I would like to add a batch of 80+ website identities in IIS6. I normally
> add a website manually in the IIS Manager, but for such a large volume of
> domains I really need an easier way.
>
> Is there a script I can run or an import procedure in IIS somewhere? I have
> searched online and in the documentation but to no avail.
>
> Any help appreciated, thank you in advance,
> -Daniel
 >> Stay informed about: batch-adding multiple websites 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Adding a MIME type to IIS6 from the batch file - Hi! I need to add my file type to known extensions of IIS6. How can I do it from a batch file? Thanks, Moshe.

Help with Adding Multiple IP's - HI, I have an IIS server that I host multiple websites. I need to put some sites on their own IP. I add these IP, to the single network adapter under the TCP/IP settings. Once I do this, all my sites no longer work. I'm not sure what I am doing wrong...

Adding multiple host headers through ADSI not working prop.. - I was wondering if someone could help. I have a scenario where I am trying to set up multiple host headers on a web site using ADSI. Ex: I have a site called www.testsite.com to which I want to assign three host headers like (testsite.com,..

Multiple Websites - Hi, I'm using headers for my websites, how can I access them locally for testing purposes? TIA Regards, TagaR

Multiple websites on XP? - I remember there was a way (by script, not GUI), to create multiple websites on a machine running Windows XP, but you could only have one website running at each time. Anyone remember how you did that? -- Regards, Kristofer Gafvert..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]