Returns all the websites installed on the local computer, or a specific website.
Get-IisWebsite [[-Name] <String>] [<CommonParameters>]
Returns a Microsoft.Web.Administration.Site object.
Each object will have a CommitChanges
script method added which will allow you to commit/persist any changes to the website's configuration.
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 site to get. |
false | false |
Get-IisWebsite
Returns all installed websites.
Get-IisWebsite -SiteName 'WebsiteName'
Returns the details for the site named WebsiteName
.