Restart-WebAppPool

Recycles an application pool.

Syntax

Restart-WebAppPool
       [[-Name] <String>]
       [<CommonParameters>]

Description

Causes the specified application pool to be recycled.

Examples

-------------- EXAMPLE 1: Recycling an Application Pool --------------

IIS:\>Restart-WebAppPool DefaultAppPool

Recycles the application pool named DefaultAppPool.

Optional Parameters

-Name

The name of the application pool to restart.

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