Hello,

I'm running IIS 5.0. I'd like to be able to add and configure a website via
a command line (batch file). Is that possible and if so how? Or even ASP
code.

Jay Ligda

Re: Add Website Via Command Line by Kristofer

Kristofer
Fri Nov 05 01:08:52 CST 2004

Hello,

In Windows 2000 (IIS 5.0), you can use mkw3site.vbs to create websites (i
think it is located in C:\inetpub\adminscripts, but i do not have a Windows
2000 machine right now, so i cannot verify).

This webpage explains the syntax:

http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/adminsamples/mkw3site.htm?id=141

You can also use ADSI/WMI to manage websites, and a reference is available
here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/iis_adsi_provider_architecture.asp

This website has some more instructions and samples for ADSI:
http://www.iisfaq.com/Default.aspx?tabid=2536

You may also be interested in this website:
http://www.adsi4nt.com/

I hope this answers your question, if not, please let us know!

--
Regards,
Kristofer Gafvert
http://www.ilopia.com


"Jligda" <Jligda@discussions.microsoft.com> wrote in message
news:D2FD165D-6FB9-438D-859C-E3AD9D042F8C@microsoft.com...
> Hello,
>
> I'm running IIS 5.0. I'd like to be able to add and configure a website
via
> a command line (batch file). Is that possible and if so how? Or even ASP
> code.
>
> Jay Ligda