
SAPIEN homepage
PrimalScript script editor+ide
PrimalScope script debugger
Free Tools script utilities
SAPIEN Press tech books
ScriptingAnswers.com learn+share
ScriptingOutpost.com online store
Blog.Sapien.com official blog
Contact Us

Have you written a script that accomplishes some administrative task? Please share it! Just navigate to the appropriate category and click the "Contribute to this category" link!
You are here: Top > IIS
Contribute to this category
Sub-Categories
(no categories are available)
Scripts
Create a Web Site with WMI Contributed by Don Jones
IIS 6.0 provides a robust WMI namespace. This script shows how WMI and VBScript can be used to create a new Web site, including the unique server binding (server address, port, and host header) information.Dump the IIS Metabase Contributed by Don Jones
This script shows how to use the IIS 6 WMI namespace to dump a portion of the IIS metabase to an XML file. This file could be used to restore the metabase, or to copy it to another server in a Web farm. Demonstrates how the WMI namespace can be used at the IIS computer level to accomplish computer-wide tasks.IIS Archiver Contributed by Don Jones
The IIS Archiver is a VBScript written in WSF format, meaning it can be used as a command-line tool and supports /? functionality.IIS ISAPI Removal I Contributed by Mike Reeves
If you have multiple IIS servers with mutiple websites, and you have the need for removing a specific ISAPI filter, run this script as it traverses through all of the Virtual websites on a given IIS machine and removes it.IIS ISAPI Removal Contributed by Mike Reeves
If you have multiple IIS servers with mutiple websites, and you have the need for removing a specific ISAPI filter, run this script as it traverses through all of the Virtual websites on a given IIS machine and removes it.IIS Log Rotation Script Contributed by Don Jones
This script maintains a rolling 90-day archive of IIS log files. You'll need to modify the folder locations to match your environment. The main thing to take away from this example is how string and date functions are used to calculate dates and construct the date-centric IIS log file name.Scan IIS log for application errors Contributed by Don Jones
This script scans a given IIS log for HTTP 500 errors, which indicate an ASP or similar server-side application error. It creates an HTML-formatted report of the errors, which can be given to your Web developers or posted on an intranet for investigation.Show Web site properties Contributed by Don Jones
This script is a simple demonstration of the IIS 6.0 namespace, including how to query for a specific site using the hierarchical-based naming convention of this namespace.Spooler Restart Contributed by Brad Myers
' This script will allow you to stop and restart a service of your choice from a webpage ' It currently is having some issues that I'd appreciate some help with. ' The script portion seems to work fine, but I'm missing something because it doesn't work ' when embedded in ASP. ' Just change the ServiceName value to whatever service you like ' and ClientName to the machine where the account you'll use exists ' also in line 22..replace username and password with accounts that exist on the ClientName machine ' Any help in making this work greatly appreciated. Email me at bradmyers@purdue.edu.