PowerShell Logo Small

Get-WebItemState



This is the built-in help made by Microsoft for the command 'Get-WebItemState', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

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

SYNTAX


Get-WebItemState [[-PSPath] <String[]>] [-Protocol <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=287865

REMARKS

<

Examples


-------------- EXAMPLE 1: Retrieve the State of all Web sites --------------

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



Returns information about the state of all the sites on the IIS server.




-------------- EXAMPLE 2: Retrieving the State of the Default Web Site using HTTP--------------

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



Value

-----

Started

Returns information about the HTTP binding on the Default Web Site.