Get-IisWebsite

Gets details about a website.

Syntax

Get-IisWebsite [-SiteName] <String> [<CommonParameters>]

Description

Returns an object containing the name, ID, bindings, and state of a website:

Parameters

Name Type Description Required? Pipeline Input Default Value
SiteName String The name of the site to get. true false

EXAMPLE 1

Get-IisWebsite -SiteName 'WebsiteName'

Returns the details for the site named WebsiteName.