Test-IisWebsite

Tests if a website exists.

Syntax

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

Description

Returns True if a website with name Name exists. False if it doesn't.

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 website whose existence to check.

true false

EXAMPLE 1

Test-IisWebsite -Name 'Peanuts'

Returns True if the Peanuts website exists. False if it doesn't.