Tests if a website exists.
Test-IisWebsite [-Name] <String> [<CommonParameters>]
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.
| Name | Type | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|---|
| Name | String | The name of the website whose existence to check. |
true | false |
Test-IisWebsite -Name 'Peanuts'
Returns True if the Peanuts website exists. False if it doesn't.