Get-WebItemState

Get-WebItemState

Gets the run-time state of a site or an application pool.

구문

Parameter Set: Default
Get-WebItemState [[-PSPath] <String[]> ] [-Protocol <String> ] [ <CommonParameters>]

자세한 설명

The Get-WebItemState cmdlet gets the run-time state of a site or an application pool.

매개 변수

-PSPath<String[]>

Specifies the path to the application pool or site.

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Protocol<String>

Specifies the protocol binding for which information is returned, such as HTTP or FTP. This parameter is for sites only.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • PSObject

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • PSObject

예제

Example 1: Get the state of all websites

This command returns information about the state of all the sites on the IIS server.

C:\PS>Get-WebItemState -PSPath "IIS:\sites\*"

Example 2: Get the state of the default website using HTTP

This command returns information about the HTTP binding on the default website.

IIS:\>Get-WebItemState -PSPath '.\Default Web Site' -Protocol "http"