Start-WebItem
Starts an application pool or a website.
Syntax
Default (Default)
Start-WebItem
[-Passthru]
[-Protocol <String>]
[[-PSPath] <String[]>]
[<CommonParameters>]
Description
The Start-WebItem cmdlet starts an application pool or a website.
Examples
Example 1: Start a website
IIS:\> Start-WebItem -PSPath "IIS:\Sites\Default Web Site"
This command starts the site named Default Web Site.
Parameters
-Passthru
Passes an object that represents the web item to the pipeline.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Protocol
Specifies the protocol binding of the site to start.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-PSPath
Specifies the path to the site or application pool to start.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| 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.