Code Samples and Scripts

Author: Walter Oliver

Published on December 02, 2007 by iisteam

Updated on December 02, 2007 by iisteam

Average Rating  Rate It (0)

RSS

Overview

Once servers are configured, the next step is to create Web sites and configure them. This section contains articles that provide code samples for various provisioning steps.

Provisioning

The provisioning may include:

  • Creating a Web site
  • Setting multiple host headers (bindings)
  • Creating an application pool
  • Setting a custom identity on the application pool
  • Assigning a Web site to an application pool
  • Setting the failed request tracing log files path
  • Setting the W3SVC log files path

In This Section

Microsoft.Web.Administration

Introduction Managed code can be used to provision Web sites and edit configuration. Using the Script Use the following to create a site and an application pool, and to set temporary compilation directories. Creating a Site and Application Poolusing System;using ...

IIS 7.0 WMI Provider

Introduction WMI scripts can be used to provision Web sites and run many commands to edit configuration. Using the Script Use thefollowing to create a site and application pool. To create a site and application poolIf WScript.Arguments.Count 4 Then WScript ...

AppCmd.exe

Introduction AppCmd.exe can be used to provision Web sites and run many commands to edit configuration. Creating and Configuring Use the following code samples for implementing AppCmd.exe. To create a site and an application pool (with failed request tracing ...

Other Managed Code Samples

Introduction Use the following managed code samples to set permissions and to create a user account. Using the Code Set Permissions Use the following to set permissions on a folder using managed code. Note:A reference to System.DirectoryServices.dll is required ...

Comments

You must Log In to comment.

Page view counter