Document Footer Utility

Overview

A document footer is a chunk of text, possibly even HTML code, that is added to the end of a document. With IIS, you can globally specify whether you want to have the server automatically append a footer, and, if so, the text you want to append. You can specify this by either explicitly stating the string to include in every document, or by providing the name of a file to use as the footer.

Code Tour

This sample tool takes as its sole required command-line argument the ADsPath of the metabase node for which you would like to enable document footers, such as IIS://LocalHost/W3SVC/3. The GetObject method is then called to access the ADSI wrapper object for that node, and the two document footer properties, EnableDocFooter and DefaultDocFooter are appropriately modified, according to the other command-line arguments.

Notice that the SetInfo method of any ADSI object must be invoked before the changes you've made to the object take effect. SetInfo is the method that actually writes the modifications back to the metabase, so if you neglect to invoke it, your changes will be lost.

Location

This script is available in the IIS samples directory, at ...\admin\dfoot.vbs.