powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-WebItemState



NAME
Get-WebItemState

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

SYNTAX
Get-WebItemState [-Protocol ] [[-PSPath] ] [-WarningAction ] [-WarningVariable
] []


DESCRIPTION
Use Get-WebItemState to retrieve the state of application pools and Sites.


PARAMETERS
-Protocol
Protocol (only applicable when used for sites).

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-PSPath
Path to application pool or site.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS
PSObject


OUTPUTS
PSObject


NOTES




-------------- EXAMPLE 1: Retrieving 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.






RELATED LINKS