Test-IisAppPool

Checks if an app pool exists.

Syntax

Test-IisAppPool [-Name] <String> [<CommonParameters>]

Description

Returns True if an app pool with Name exists. False if it doesn't exist.

Beginning with Carbon 2.0.1, this function is available only if IIS is installed.

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String

The name of the app pool.

true false

EXAMPLE 1

Test-IisAppPool -Name Peanuts

Returns True if the Peanuts app pool exists, False if it doesn't.