Get-WebItemState

Get-WebItemState

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

Sintaxis

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

Descripción detallada

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

Parámetros

-PSPath<String[]>

Specifies the path to the application pool or site.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Protocol<String>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • PSObject

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • PSObject

Ejemplos

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"