Edit

Share via


Stop-Website

Stops an IIS website.

Syntax

Default (Default)

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

Description

The Stop-Website cmdlet stops the specified Internet Information Services (IIS) website.

Examples

Example 1: Stop a website

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

This command stops the site named Default Web Site.

Parameters

-Name

Specifies the name of the website that this cmdlet stops.

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.