Stop-Website

Stops an IIS Web site.

Syntax

Stop-Website
    [[-Name] <String>]
    [-Passthru]
    [<CommonParameters>]

Description

Stops the specified Web site.

Examples

-------------- EXAMPLE 1: Stopping a Web Site --------------

IIS:\>Stop-WebSite -Name "Default Web Site"

Stops the site named Default Web Site.

Optional Parameters

-Name

Name of the Web site to stop.

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

Passes an object that represents the Web site to the pipeline.

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