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 Web 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 | IIsFilters | IIsWebVirtualDir |
Metabase Properties
ADSI Object Methods | Standard methods for ADSI objects |
ADSI container object methods | Standard methods for ADSI container objects |
Common Object Methods | Methods, other than ADSI methods, common to all IIS Admin Objects |
Continue | Resumes the server |
Pause | Pauses the server |
Start | Starts the server |
Stop | Stops the server |