Reputation: 1553
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
Reputation: 119816
I answered a similar question the other day:
You can use the System.DirectoryServices
namespace directly from PowerShell as well as C#.
Upvotes: 1
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