Restart-WebAppPool
Restarts an application pool.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.