Restart-WebItem
Restarts an application pool or a website.
Restart-WebItem
[-Protocol <String>]
[[-PSPath] <String[]>]
[<CommonParameters>]
The Restart-WebItem cmdlet restarts an application pool or a website.
IIS:\> Restart-WebItem -PSPath 'IIS:\AppPools\DefaultAppPool'
This command restarts the application pool named DefaultAppPool.
Specifies the protocol binding of the item to restart. This parameter applies to sites only.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the path to the application pool or web site.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
PSObject
PSObject