Edit

Share via


Start-WebAppPool

Starts an application pool.

Syntax

Default (Default)

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 -ne "Started"} | Start-WebAppPool

This command starts the application pools that are currently stopped.

Parameters

-Name

Specifies the name of the application pool to start.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Passthru

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.