You can use the IIsWebServer object to set metabase properties that apply to a specific Web virtual server, and to set inheritable metabase properties for virtual directories, Web directories, and Web files. Specific methods are also available to control server operation. Web virtual servers are identified in the metabase by their index numbers. The first Web server is number 1, the second is number 2, and so on.
The IIsWebServer object is an ADSI container object.
where MachineName can be any computer name or "LocalHost."
varReturn = objWebServer.Method
IIsCertMapper | IIsWebVirtualDir |
IIsFilters |
ADSI Object Properties |
Continue | Resumes the server. |
Pause | Pauses the server. |
Start | Starts the server. |
Status | Retrieves the current status of the server. |
Stop | Stops the server. |
ADSI Object Methods | Standard methods for ADSI objects. |
ADSI Container Object Methods | Standard methods for ADSI container objects. |