description | external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
Microsoft.IIS.PowerShell.Provider.dll-Help.xml |
WebAdministration |
12/27/2016 |
2.0.0 |
Get-WebItemState |
Gets the run-time state of a site or an application pool.
Get-WebItemState [-Protocol <String>] [[-PSPath] <String[]>] [<CommonParameters>]
The Get-WebItemState cmdlet gets the run-time state of a site or an application pool.
C:\PS>Get-WebItemState -PSPath "IIS:\sites\*"
This command returns information about the state of all the sites on the IIS server.
IIS:\> Get-WebItemState -PSPath ".\Default Web Site" -Protocol "http"
Value
-----
Started
This command returns information about the HTTP binding on the default website.
Specifies the path to the application pool or site.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the protocol binding for which information is returned, such as HTTP or FTP. This parameter is for sites only.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.