Get-WebsiteState

Gets the state of an IIS Web site.

Syntax

Get-WebsiteState
   [[-Name] <String>]
   [<CommonParameters>]

Description

Gets the state of an IIS Web site.

Examples

-------------- EXAMPLE 1: Get the state of a Web site --------------

IIS:\>Get-WebsiteState -Name "Default Web Site"

Returns the state of the Default Web Site.

Value


Started

Optional Parameters

-Name

The name of the Web site to get information about.

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