Skip to content

Function AppPool

Mark Wragg edited this page Jun 17, 2019 · 2 revisions

AppPool

SYNOPSIS

Test an IIS Application Pool.

DESCRIPTION

Use to determine if an IIS Application Pool is running and validate various properties.

PARAMETERS

Target [String]

The name of the App Pool to be Tested.

[Parameter(Mandatory, Position=1, ParameterSetName="Default")]
[Parameter(Mandatory, Position=1, ParameterSetName="Property")]
[Alias("Path")]

Property [String]

The Property to be expanded. If ommitted, Property will default to status. Can handle nested objects within properties.

[Parameter(Position=2, ParameterSetName="Property")]

Should [ScriptBlock]

A Script Block defining a Pester Assertion.

[Parameter(Mandatory, Position=2, ParameterSetName="Default")]
[Parameter(Mandatory, Position=3, ParameterSetName="Property")]

Assertions

Assertions: -Be

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

AppPool TestSite { Should -Be Started }

-------------------------- EXAMPLE 2 --------------------------

AppPool TestSite ManagedPipelineMode { Should -Be 'Integrated' }

-------------------------- EXAMPLE 3 --------------------------

AppPool TestSite ProcessModel.IdentityType { Should -Be 'ApplicationPoolIdentity' }