powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Restart-WebItem



NAME
Restart-WebItem

SYNOPSIS
Restarts an application pool or a Web site.

SYNTAX
Restart-WebItem [-Protocol ] [[-PSPath] ] [-WarningAction ] [-WarningVariable <
String>] []


DESCRIPTION
Use Restart-WebItem to recycle an application pool or a Web site.


PARAMETERS
-Protocol
The protocol of the item to restart (sites only).

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-PSPath
The path to the application pool or Web site.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS
PSObject


OUTPUTS
PSObject


NOTES




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

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


Recycles the application pool named "DefaultAppPool".






RELATED LINKS
Stop-WebItem
Start-WebItem
Get-WebItemState