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.

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.