編輯

共用方式為


Restart-WebAppPool

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.

Parameters

-Name

Specifies the name of the application pool to restart.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False