Stop-WebItem

Stop-WebItem

Stops a site or an application pool.

Sintaxis

Parameter Set: Default
Stop-WebItem [[-PSPath] <String[]> ] [-Passthru] [-Protocol <String> ] [ <CommonParameters>]

Descripción detallada

The Stop-WebItem cmdlet stops a site or an application pool.

Parámetros

-PSPath<String[]>

Specifies the path to the site or application pool.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Passthru

Passes an object that represents the web item to the pipeline.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Protocol<String>

Specifies the protocol binding of the site to stop. This parameter applies to 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 -------------- EXAMPLE Example 1: Stop a Web web site --------------web

This command stops the site named Default Web Site. No output is returned.

IIS:\>Stop-WebItem -PSPath 'IIS:\Sites\Default Web Site'

Example -------------- EXAMPLE Example 2: Stopping a Web website with feedback --------------web

This command stops the site named Default Web Site and reports whether the site was stopped.

IIS:\>Stop-WebItem -PSPath 'IIS:\Sites\Default Web Site' -Passthru

Temas relacionados

Restart-WebItem

Start-WebItem