ApplicationPool.Start Method [IIS 7 and higher]
Starts an application pool.
Syntax
oApplicationPool.Start
oApplicationPool.Start();
Parameters
This method takes no parameters.
Return Value
This method does not return a value.
Remarks
This method corresponds to the IIsApplicationPool.Start method in IIS 6.0.
Example
The following example starts the application pool named DefaultAppPool.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Specify the application pool.
Set oAppPool = oWebAdmin.Get("ApplicationPool.Name='DefaultAppPool'")
' Start the application pool.
oAppPool.Start
Requirements
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |