Stop-WebAppPool

Stops an application pool.

Syntax

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

Description

Stops the specified application pool.

Examples

-------------- EXAMPLE 1: Stopping an Application Pool --------------

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

Stops the application pool named DefaultAppPool.

Optional Parameters

-Name

The name of the application pool to stop.

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