Not long ago I discovered some hidden treasure on one of my Web Servers - the IIS 6.0 Admin Scripts. These area bunch of pre-prepared scripts to make administration of IIS much quicker (and much easier to do remotely!) not to mention much more “automatable”.
I’m not going to get into huge detail here, but I whipped up a couple of batch files to do some work in my office a couple of weeks back. Here’s an example of one:
# iisweb /create “Spiffy Site” d:\inetpub\wwwroot\spiffysite.mydomain.com “ASP.NET 2.0 App Pool” /dontstart
# iisvdir /create “Spiffy Site” “images” d:\inetpub\wwwroot\common\images
# iisvdir /create “Spiffy Site” “scripts” d:\intpub\wwwroot\common\scripts
# iisweb /start “Spiffy Site”
Notes:
- The scripts are all located in the System32 folder (usually C:\Windows\System32).
- These must be run with CScript, you will be prompted if the mapping is not set up







0 Responses to “Hidden Treasure! - IIS 6 Admin Scripts”