Restart-WebItem
Restarts an application pool or a website.
Syntax
Restart-WebItem
[-Protocol <String>]
[[-PSPath] <String[]>]
[<CommonParameters>]
Description
The Restart-WebItem cmdlet restarts an application pool or a website.
Examples
Example 1: Restart an application pool
IIS:\> Restart-WebItem -PSPath 'IIS:\AppPools\DefaultAppPool'
This command restarts the application pool named DefaultAppPool.
Parameters
-Protocol
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 |
-PSPath
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 |
Inputs
PSObject
Outputs
PSObject
Related Links
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應