Restart-WebItem

Restarts an application pool or a Web site.

Syntax

Restart-WebItem
       [-Protocol <String>]
       [[-PSPath] <String[]>]
       [<CommonParameters>]

Description

Use theRestart-WebItemcmdlets to recycle an application pool or a Web site.

Examples

-------------- EXAMPLE 1: Recycle an Application Pool --------------

IIS:\>Restart-WebItem 'IIS:\AppPools\DefaultAppPool'

Restarts the application pool named DefaultAppPool.

Optional Parameters

-PSPath

The path to the application pool or Web site.

Type:String[]
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Protocol

The protocol binding of the item to restart (applies to sites only).

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSObject

Outputs

PSObject