Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Stops the specified Web site.

Syntax

Stop-Website [[-Name] <String>] [-Passthru] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

Stops the specified Web site.

Parameters

-Name [<String>]

Name of the Web site to stop.

Required?   false
Position?   1
Default value?  
Accept pipeline input?   true (ByPropertyName)
Accept wildcard characters?   false

-Passthru [<SwitchParameter>]

Passes an object representing the web site to the pipeline

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-WarningAction [<ActionPreference>]

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-WarningVariable [<String>]

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

Input Type

Return Type

Notes

Examples

EXAMPLE 1: Stopping a Web Site

PS> Stop-WebSite -Name "Default Web Site"

Stops the site named "Default Web Site".