Export (0) Print
Expand All
Expand Minimize

Get-WebItemState

Windows Server 2012 R2 and Windows 8.1

Get-WebItemState

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

Syntax

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




Detailed Description

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

Parameters

-PSPath<String[]>

Specifies the path to the application pool or site.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Protocol<String>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • PSObject

Outputs

The output type is the type of the objects that the cmdlet emits.

  • PSObject

Examples

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"

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft