Start-Website

Starts an IIS website.

Syntax

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.

Optional Parameters

-Name

Specifies the name of the website that this cmdlet starts.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Passthru

Passes an object that represents the website to the pipeline.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False