Alhambra Eidos
Alhambra Eidos

Reputation: 1553

Where can I find management scripts for IIS 6.0?

I'm running Windows 2003 R2 and IIS 6.0 with web applications written in ASP.NET.

I am looking for good samples of scripts (.bat, .cmd, .VBS, or powershell) to allow me to:

For websites:

For virtual directories:

For application pools:

thanks..

Upvotes: 0

Views: 991

Answers (2)

Kev
Kev

Reputation: 119816

I answered a similar question the other day:

Automated creation of IIS websites (Stack Overflow)

You can use the System.DirectoryServices namespace directly from PowerShell as well as C#.

Upvotes: 1

Igal Serban
Igal Serban

Reputation: 10684

Most of what you need can be found in the system32 directory. Look for the files:

iis*.vbs

for start run:

cscript c:\WINDOWS\system32\iisweb.vbs /?

To create application pool, look at David Wang post.

Upvotes: 0

Related Questions