Restart-Web App Pool

Restarts an application pool.

Syntax

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

Description

The Restart-WebAppPool cmdlet restarts the specified application pool.

Examples

Example 1: Restart an application pool

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

This command restarts the application pool named DefaultAppPool.

Optional Parameters

-Name

Specifies the name of the application pool to restart.

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