Start-WebAppPool

Starts an application pool.

Syntax

Start-WebAppPool
     [[-Name] <String>]
     [-Passthru]
     [<CommonParameters>]

Description

The Start-WebAppPool cmdlet starts the specified application pool.

Examples

Example 1: Start an application pool

IIS:\> Start-WebAppPool -Name "DefaultAppPool"

This command starts the application pool named DefaultAppPool.

Example 2: Start stopped application pools

IIS:\> Get-ChildItem IIS:\AppPools | where {$_.state -eq "Started"} | Start-WebAppPool

This command starts the application pools that are currently stopped.

Optional Parameters

-Name

Specifies the name of the application pool to start.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Passthru

Passes an object that represents the application pool to the pipeline.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False