Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-WebsiteState

Brian Lich|Last Updated: 4/3/2017

SYNOPSIS

Gets the state of an IIS website.

SYNTAX

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

DESCRIPTION

The Get-WebsiteState cmdlet gets the state of an Internet Information Services (IIS) website.

EXAMPLES

Example 1: Get the state of a website

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

This command returns the state of the default website.

PARAMETERS

-Name

Specifies the name of the website about which this cmdlet gets information.

Type: String
Parameter Sets: (All)
Aliases: 

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

© 2017 Microsoft