powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Stop-Website



NAME
Stop-Website

SYNOPSIS
Stops the specified Web site.

SYNTAX
Stop-Website [[-Name] ] [-Passthru] [-WarningAction ] [-WarningVariable ] [ nParameters>]


DESCRIPTION
Stops the specified Web site.


PARAMETERS
-Name
Name of the Web site to stop.

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

-Passthru
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


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

-WarningVariable


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


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




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

C:\PS>Stop-WebSite -Name "Default Web Site"


Stops the site named "Default Web Site".






RELATED LINKS
Start-WebSite
Start-WebItem
Start-WebAppPool
Stop-WebItem
Stop-WebAppPool