Start-Website
Starts an IIS website.
Syntax
Default (Default)
Start-Website
[[-Name] <String>]
[-Passthru]
[<CommonParameters>]
Description
The Start-Website cmdlet starts an existing site on the Internet Information Services (IIS) server.
Examples
Example 1: Start a website
IIS:\> Start-WebSite -Name "Default Web Site"
This command starts the site named Default Web Site.
Parameters
-Name
Specifies the name of the website that this cmdlet starts.
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 |
-Passthru
Passes an object that represents the website 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 |
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.