Edit

Share via


Stop-WebAppPool

Stops an application pool.

Syntax

Default (Default)

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

Description

The Stop-WebAppPool cmdlet stops the specified application pool.

Examples

Example 1: Stop an application pool

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

This command stops the application pool named DefaultAppPool.

Parameters

-Name

Specifies the name of the application pool to stop.

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.